core

package
v0.96.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 28, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

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 New

func New(ctx context.Context, svcCtx *svc.ServiceContext) *ChatCore

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 (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

func (c *ChatCore) ChatMigratedToChannel(in *chat.TLChatMigratedToChannel) (*mtproto.Bool, error)

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;

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL