Documentation
¶
Index ¶
- type ChatCore
- func (c *ChatCore) ChatAddChatUser(in *chat.TLChatAddChatUser) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatCheckChatInvite(in *chat.TLChatCheckChatInvite) (*chat.ChatInviteExt, error)
- func (c *ChatCore) ChatCreateChat2(in *chat.TLChatCreateChat2) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatDeleteChat(in *chat.TLChatDeleteChat) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatDeleteChatUser(in *chat.TLChatDeleteChatUser) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatDeleteExportedChatInvite(in *chat.TLChatDeleteExportedChatInvite) (*mtproto.Bool, error)
- func (c *ChatCore) ChatDeleteRevokedExportedChatInvites(in *chat.TLChatDeleteRevokedExportedChatInvites) (*mtproto.Bool, error)
- func (c *ChatCore) ChatEditChatAbout(in *chat.TLChatEditChatAbout) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatEditChatAdmin(in *chat.TLChatEditChatAdmin) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatEditChatDefaultBannedRights(in *chat.TLChatEditChatDefaultBannedRights) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatEditChatPhoto(in *chat.TLChatEditChatPhoto) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatEditChatTitle(in *chat.TLChatEditChatTitle) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatEditExportedChatInvite(in *chat.TLChatEditExportedChatInvite) (*chat.Vector_ExportedChatInvite, error)
- func (c *ChatCore) ChatExportChatInvite(in *chat.TLChatExportChatInvite) (*mtproto.ExportedChatInvite, error)
- func (c *ChatCore) ChatGetAdminsWithInvites(in *chat.TLChatGetAdminsWithInvites) (*chat.Vector_ChatAdminWithInvites, error)
- func (c *ChatCore) ChatGetChatBySelfId(in *chat.TLChatGetChatBySelfId) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatGetChatInviteImporters(in *chat.TLChatGetChatInviteImporters) (*chat.Vector_ChatInviteImporter, error)
- func (c *ChatCore) ChatGetChatListByIdList(in *chat.TLChatGetChatListByIdList) (*chat.Vector_MutableChat, error)
- func (c *ChatCore) ChatGetChatParticipantIdList(in *chat.TLChatGetChatParticipantIdList) (*chat.Vector_Long, error)
- func (c *ChatCore) ChatGetExportedChatInvite(in *chat.TLChatGetExportedChatInvite) (*mtproto.ExportedChatInvite, error)
- func (c *ChatCore) ChatGetExportedChatInvites(in *chat.TLChatGetExportedChatInvites) (*chat.Vector_ExportedChatInvite, error)
- func (c *ChatCore) ChatGetMutableChat(in *chat.TLChatGetMutableChat) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatGetMutableChatByLink(in *chat.TLChatGetMutableChatByLink) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatGetMyChatList(in *chat.TLChatGetMyChatList) (*chat.Vector_MutableChat, error)
- func (c *ChatCore) ChatGetRecentChatInviteRequesters(in *chat.TLChatGetRecentChatInviteRequesters) (*chat.RecentChatInviteRequesters, error)
- func (c *ChatCore) ChatGetUsersChatIdList(in *chat.TLChatGetUsersChatIdList) (*chat.Vector_UserChatIdList, error)
- func (c *ChatCore) ChatHideChatJoinRequests(in *chat.TLChatHideChatJoinRequests) (*chat.RecentChatInviteRequesters, error)
- func (c *ChatCore) ChatImportChatInvite(in *chat.TLChatImportChatInvite) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatImportChatInvite2(in *chat.TLChatImportChatInvite2) (*chat.ChatInviteImported, error)
- func (c *ChatCore) ChatMigratedToChannel(in *chat.TLChatMigratedToChannel) (*mtproto.Bool, error)
- func (c *ChatCore) ChatSearch(in *chat.TLChatSearch) (*chat.Vector_MutableChat, error)
- func (c *ChatCore) ChatSetChatAvailableReactions(in *chat.TLChatSetChatAvailableReactions) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatSetHistoryTTL(in *chat.TLChatSetHistoryTTL) (*mtproto.MutableChat, error)
- func (c *ChatCore) ChatToggleNoForwards(in *chat.TLChatToggleNoForwards) (*mtproto.MutableChat, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatCore ¶
type ChatCore struct { logx.Logger MD *metadata.RpcMetadata // contains filtered or unexported fields }
func (*ChatCore) ChatAddChatUser ¶
func (c *ChatCore) ChatAddChatUser(in *chat.TLChatAddChatUser) (*mtproto.MutableChat, error)
ChatAddChatUser chat.addChatUser chat_id:long inviter_id:long user_id:long = MutableChat;
func (*ChatCore) ChatCheckChatInvite ¶
func (c *ChatCore) ChatCheckChatInvite(in *chat.TLChatCheckChatInvite) (*chat.ChatInviteExt, error)
ChatCheckChatInvite chat.checkChatInvite self_id:long hash:string = ChatInvite;
func (*ChatCore) ChatCreateChat2 ¶
func (c *ChatCore) ChatCreateChat2(in *chat.TLChatCreateChat2) (*mtproto.MutableChat, error)
ChatCreateChat2 chat.createChat2 creator_id:long user_id_list:Vector<long> title:string = MutableChat;
func (*ChatCore) ChatDeleteChat ¶
func (c *ChatCore) ChatDeleteChat(in *chat.TLChatDeleteChat) (*mtproto.MutableChat, error)
ChatDeleteChat chat.deleteChat chat_id:long operator_id:long = MutableChat;
func (*ChatCore) ChatDeleteChatUser ¶
func (c *ChatCore) ChatDeleteChatUser(in *chat.TLChatDeleteChatUser) (*mtproto.MutableChat, error)
ChatDeleteChatUser chat.deleteChatUser chat_id:long operator_id:long delete_user_id:long = MutableChat;
func (*ChatCore) ChatDeleteExportedChatInvite ¶
func (c *ChatCore) ChatDeleteExportedChatInvite(in *chat.TLChatDeleteExportedChatInvite) (*mtproto.Bool, error)
ChatDeleteExportedChatInvite chat.deleteExportedChatInvite self_id:long chat_id:long link:string = Bool;
func (*ChatCore) ChatDeleteRevokedExportedChatInvites ¶
func (c *ChatCore) ChatDeleteRevokedExportedChatInvites(in *chat.TLChatDeleteRevokedExportedChatInvites) (*mtproto.Bool, error)
ChatDeleteRevokedExportedChatInvites chat.deleteRevokedExportedChatInvites self_id:long chat_id:long admin_id:long = Bool;
func (*ChatCore) ChatEditChatAbout ¶
func (c *ChatCore) ChatEditChatAbout(in *chat.TLChatEditChatAbout) (*mtproto.MutableChat, error)
ChatEditChatAbout chat.editChatAbout chat_id:long edit_user_id:long about:string = MutableChat;
func (*ChatCore) ChatEditChatAdmin ¶
func (c *ChatCore) ChatEditChatAdmin(in *chat.TLChatEditChatAdmin) (*mtproto.MutableChat, error)
ChatEditChatAdmin chat.editChatAdmin chat_id:long operator_id:long edit_chat_admin_id:long is_admin:Bool = MutableChat;
func (*ChatCore) ChatEditChatDefaultBannedRights ¶
func (c *ChatCore) ChatEditChatDefaultBannedRights(in *chat.TLChatEditChatDefaultBannedRights) (*mtproto.MutableChat, error)
ChatEditChatDefaultBannedRights chat.editChatDefaultBannedRights chat_id:long operator_id:long banned_rights:ChatBannedRights = MutableChat;
func (*ChatCore) ChatEditChatPhoto ¶
func (c *ChatCore) ChatEditChatPhoto(in *chat.TLChatEditChatPhoto) (*mtproto.MutableChat, error)
ChatEditChatPhoto chat.editChatPhoto chat_id:long edit_user_id:long chat_photo:Photo = MutableChat;
func (*ChatCore) ChatEditChatTitle ¶
func (c *ChatCore) ChatEditChatTitle(in *chat.TLChatEditChatTitle) (*mtproto.MutableChat, error)
ChatEditChatTitle chat.editChatTitle chat_id:long edit_user_id:long title:string = MutableChat;
func (*ChatCore) ChatEditExportedChatInvite ¶
func (c *ChatCore) ChatEditExportedChatInvite(in *chat.TLChatEditExportedChatInvite) (*chat.Vector_ExportedChatInvite, error)
ChatEditExportedChatInvite chat.editExportedChatInvite flags:# self_id:long chat_id:long revoked:flags.2?true link:string expire_date:flags.0?int usage_limit:flags.1?int request_needed:flags.3?Bool title:flags.4?string = ExportedChatInvite;
func (*ChatCore) ChatExportChatInvite ¶
func (c *ChatCore) ChatExportChatInvite(in *chat.TLChatExportChatInvite) (*mtproto.ExportedChatInvite, error)
ChatExportChatInvite chat.exportChatInvite flags:# chat_id:long admin_id:long legacy_revoke_permanent:flags.2?true request_needed:flags.3?true expire_date:flags.0?int usage_limit:flags.1?int title:flags.4?string = ExportedChatInvite;
func (*ChatCore) ChatGetAdminsWithInvites ¶
func (c *ChatCore) ChatGetAdminsWithInvites(in *chat.TLChatGetAdminsWithInvites) (*chat.Vector_ChatAdminWithInvites, error)
ChatGetAdminsWithInvites chat.getAdminsWithInvites self_id:long chat_id:long = Vector<ChatAdminWithInvites>;
func (*ChatCore) ChatGetChatBySelfId ¶
func (c *ChatCore) ChatGetChatBySelfId(in *chat.TLChatGetChatBySelfId) (*mtproto.MutableChat, error)
ChatGetChatBySelfId chat.getChatBySelfId self_id:long chat_id:long = MutableChat;
func (*ChatCore) ChatGetChatInviteImporters ¶
func (c *ChatCore) ChatGetChatInviteImporters(in *chat.TLChatGetChatInviteImporters) (*chat.Vector_ChatInviteImporter, error)
ChatGetChatInviteImporters chat.getChatInviteImporters flags:# self_id:long chat_id:long requested:flags.0?true link:flags.1?string q:flags.2?string offset_date:int offset_user:long limit:int = Vector<ChatInviteImporter>;
func (*ChatCore) ChatGetChatListByIdList ¶
func (c *ChatCore) ChatGetChatListByIdList(in *chat.TLChatGetChatListByIdList) (*chat.Vector_MutableChat, error)
ChatGetChatListByIdList chat.getChatListByIdList self_id:long id_list:Vector<long> = Vector<MutableChat>;
func (*ChatCore) ChatGetChatParticipantIdList ¶
func (c *ChatCore) ChatGetChatParticipantIdList(in *chat.TLChatGetChatParticipantIdList) (*chat.Vector_Long, error)
ChatGetChatParticipantIdList chat.getChatParticipantIdList chat_id:long = Vector<long>;
func (*ChatCore) ChatGetExportedChatInvite ¶
func (c *ChatCore) ChatGetExportedChatInvite(in *chat.TLChatGetExportedChatInvite) (*mtproto.ExportedChatInvite, error)
ChatGetExportedChatInvite chat.getExportedChatInvite chat_id:long link:string = ExportedChatInvite;
func (*ChatCore) ChatGetExportedChatInvites ¶
func (c *ChatCore) ChatGetExportedChatInvites(in *chat.TLChatGetExportedChatInvites) (*chat.Vector_ExportedChatInvite, error)
ChatGetExportedChatInvites chat.getExportedChatInvites flags:# chat_id:long admin_id:long revoked:flags.3?true offset_date:flags.2?int offset_link:flags.2?string limit:int = Vector<ExportedChatInvite>;
func (*ChatCore) ChatGetMutableChat ¶
func (c *ChatCore) ChatGetMutableChat(in *chat.TLChatGetMutableChat) (*mtproto.MutableChat, error)
ChatGetMutableChat chat.getMutableChat chat_id:long = MutableChat;
func (*ChatCore) ChatGetMutableChatByLink ¶
func (c *ChatCore) ChatGetMutableChatByLink(in *chat.TLChatGetMutableChatByLink) (*mtproto.MutableChat, error)
ChatGetMutableChatByLink chat.getMutableChatByLink link:string = MutableChat;
func (*ChatCore) ChatGetMyChatList ¶
func (c *ChatCore) ChatGetMyChatList(in *chat.TLChatGetMyChatList) (*chat.Vector_MutableChat, error)
ChatGetMyChatList chat.getMyChatList user_id:long is_creator:Bool = Vector<MutableChat>;
func (*ChatCore) ChatGetRecentChatInviteRequesters ¶ added in v0.90.1
func (c *ChatCore) ChatGetRecentChatInviteRequesters(in *chat.TLChatGetRecentChatInviteRequesters) (*chat.RecentChatInviteRequesters, error)
ChatGetRecentChatInviteRequesters chat.getRecentChatInviteRequesters self_id:long chat_id:long = RecentChatInviteRequesters;
func (*ChatCore) ChatGetUsersChatIdList ¶
func (c *ChatCore) ChatGetUsersChatIdList(in *chat.TLChatGetUsersChatIdList) (*chat.Vector_UserChatIdList, error)
ChatGetUsersChatIdList chat.getUsersChatIdList id:Vector<long> = Vector<UserChatIdList>;
func (*ChatCore) ChatHideChatJoinRequests ¶ added in v0.90.1
func (c *ChatCore) ChatHideChatJoinRequests(in *chat.TLChatHideChatJoinRequests) (*chat.RecentChatInviteRequesters, error)
ChatHideChatJoinRequests chat.hideChatJoinRequests flags:# self_id:long chat_id:long approved:flags.0?true link:flags.1?string user_id:flags.2?long = RecentChatInviteRequesters;
func (*ChatCore) ChatImportChatInvite ¶
func (c *ChatCore) ChatImportChatInvite(in *chat.TLChatImportChatInvite) (*mtproto.MutableChat, error)
ChatImportChatInvite chat.importChatInvite self_id:long hash:string = MutableChat;
func (*ChatCore) ChatImportChatInvite2 ¶ added in v0.90.1
func (c *ChatCore) ChatImportChatInvite2(in *chat.TLChatImportChatInvite2) (*chat.ChatInviteImported, error)
ChatImportChatInvite2 chat.importChatInvite2 self_id:long hash:string = ChatInviteImported;
func (*ChatCore) ChatMigratedToChannel ¶
ChatMigratedToChannel chat.migratedToChannel chat:MutableChat id:long access_hash:long = Bool;
func (*ChatCore) ChatSearch ¶ added in v0.90.1
func (c *ChatCore) ChatSearch(in *chat.TLChatSearch) (*chat.Vector_MutableChat, error)
ChatSearch chat.search self_id:long q:string offset:long limit:int = Vector<UserChatIdList>;
func (*ChatCore) ChatSetChatAvailableReactions ¶ added in v0.86.2
func (c *ChatCore) ChatSetChatAvailableReactions(in *chat.TLChatSetChatAvailableReactions) (*mtproto.MutableChat, error)
ChatSetChatAvailableReactions chat.setChatAvailableReactions self_id:long chat_id:long available_reactions:Vector<string> = Bool;
func (*ChatCore) ChatSetHistoryTTL ¶ added in v0.90.0
func (c *ChatCore) ChatSetHistoryTTL(in *chat.TLChatSetHistoryTTL) (*mtproto.MutableChat, error)
ChatSetHistoryTTL chat.setHistoryTTL self_id:long chat_id:long ttl_period:int = Bool;
func (*ChatCore) ChatToggleNoForwards ¶ added in v0.86.3
func (c *ChatCore) ChatToggleNoForwards(in *chat.TLChatToggleNoForwards) (*mtproto.MutableChat, error)
ChatToggleNoForwards chat.toggleNoForwards chat_id:long operator_id:long enabled:Bool = MutableChat;
Source Files
¶
- chat.addChatUser_handler.go
- chat.checkChatInvite_handler.go
- chat.createChat2_handler.go
- chat.deleteChatUser_handler.go
- chat.deleteChat_handler.go
- chat.deleteExportedChatInvite_handler.go
- chat.deleteRevokedExportedChatInvites_handler.go
- chat.editChatAbout_handler.go
- chat.editChatAdmin_handler.go
- chat.editChatDefaultBannedRights_handler.go
- chat.editChatPhoto_handler.go
- chat.editChatTitle_handler.go
- chat.editExportedChatInvite_handler.go
- chat.exportChatInvite_handler.go
- chat.getAdminsWithInvites_handler.go
- chat.getChatBySelfId_handler.go
- chat.getChatInviteImporters_handler.go
- chat.getChatListByIdList_handler.go
- chat.getChatParticipantIdList_handler.go
- chat.getExportedChatInvite_handler.go
- chat.getExportedChatInvites_handler.go
- chat.getMutableChatByLink_handler.go
- chat.getMutableChat_handler.go
- chat.getMyChatList_handler.go
- chat.getRecentChatInviteRequesters_handler.go
- chat.getUsersChatIdList_handler.go
- chat.hideChatJoinRequests_handler.go
- chat.importChatInvite2_handler.go
- chat.importChatInvite_handler.go
- chat.migratedToChannel_handler.go
- chat.search_handler.go
- chat.setChatAvailableReactions_handler.go
- chat.setHistoryTTL_handler.go
- chat.toggleNoForwards_handler.go
- core.go