core

package
v0.86.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 License: Apache-2.0 Imports: 14 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) (*chat.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) (*chat.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) (*chat.MutableChat, error)

ChatDeleteChat chat.deleteChat chat_id:long operator_id:long = MutableChat;

func (*ChatCore) ChatDeleteChatUser

func (c *ChatCore) ChatDeleteChatUser(in *chat.TLChatDeleteChatUser) (*chat.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) (*chat.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) (*chat.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) (*chat.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) (*chat.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) (*chat.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) (*chat.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) (*chat.MutableChat, error)

ChatGetMutableChat chat.getMutableChat chat_id:long = MutableChat;

func (c *ChatCore) ChatGetMutableChatByLink(in *chat.TLChatGetMutableChatByLink) (*chat.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) ChatGetUsersChatIdList

func (c *ChatCore) ChatGetUsersChatIdList(in *chat.TLChatGetUsersChatIdList) (*chat.Vector_UserChatIdList, error)

ChatGetUsersChatIdList chat.getUsersChatIdList id:Vector<long> = Vector<UserChatIdList>;

func (*ChatCore) ChatImportChatInvite

func (c *ChatCore) ChatImportChatInvite(in *chat.TLChatImportChatInvite) (*chat.MutableChat, error)

ChatImportChatInvite chat.importChatInvite self_id:long hash:string = MutableChat;

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) ChatSetChatAvailableReactions added in v0.86.2

func (c *ChatCore) ChatSetChatAvailableReactions(in *chat.TLChatSetChatAvailableReactions) (*chat.MutableChat, error)

ChatSetChatAvailableReactions chat.setChatAvailableReactions self_id:long chat_id:long available_reactions:Vector<string> = Bool;

Jump to

Keyboard shortcuts

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