service

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func New

func New(ctx *svc.ServiceContext) *Service

func (*Service) ChatAddChatUser

func (s *Service) ChatAddChatUser(ctx context.Context, request *chat.TLChatAddChatUser) (*mtproto.MutableChat, error)

ChatAddChatUser chat.addChatUser chat_id:long inviter_id:long user_id:long = MutableChat;

func (*Service) ChatCheckChatInvite

func (s *Service) ChatCheckChatInvite(ctx context.Context, request *chat.TLChatCheckChatInvite) (*chat.ChatInviteExt, error)

ChatCheckChatInvite chat.checkChatInvite self_id:long hash:string = ChatInviteExt;

func (*Service) ChatCreateChat2

func (s *Service) ChatCreateChat2(ctx context.Context, request *chat.TLChatCreateChat2) (*mtproto.MutableChat, error)

ChatCreateChat2 chat.createChat2 creator_id:long user_id_list:Vector<long> title:string = MutableChat;

func (*Service) ChatDeleteChat

func (s *Service) ChatDeleteChat(ctx context.Context, request *chat.TLChatDeleteChat) (*mtproto.MutableChat, error)

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

func (*Service) ChatDeleteChatUser

func (s *Service) ChatDeleteChatUser(ctx context.Context, request *chat.TLChatDeleteChatUser) (*mtproto.MutableChat, error)

ChatDeleteChatUser chat.deleteChatUser chat_id:long operator_id:long delete_user_id:long = MutableChat;

func (*Service) ChatDeleteExportedChatInvite

func (s *Service) ChatDeleteExportedChatInvite(ctx context.Context, request *chat.TLChatDeleteExportedChatInvite) (*mtproto.Bool, error)

ChatDeleteExportedChatInvite chat.deleteExportedChatInvite self_id:long chat_id:long link:string = Bool;

func (*Service) ChatDeleteRevokedExportedChatInvites

func (s *Service) ChatDeleteRevokedExportedChatInvites(ctx context.Context, request *chat.TLChatDeleteRevokedExportedChatInvites) (*mtproto.Bool, error)

ChatDeleteRevokedExportedChatInvites chat.deleteRevokedExportedChatInvites self_id:long chat_id:long admin_id:long = Bool;

func (*Service) ChatEditChatAbout

func (s *Service) ChatEditChatAbout(ctx context.Context, request *chat.TLChatEditChatAbout) (*mtproto.MutableChat, error)

ChatEditChatAbout chat.editChatAbout chat_id:long edit_user_id:long about:string = MutableChat;

func (*Service) ChatEditChatAdmin

func (s *Service) ChatEditChatAdmin(ctx context.Context, request *chat.TLChatEditChatAdmin) (*mtproto.MutableChat, error)

ChatEditChatAdmin chat.editChatAdmin chat_id:long operator_id:long edit_chat_admin_id:long is_admin:Bool = MutableChat;

func (*Service) ChatEditChatDefaultBannedRights

func (s *Service) ChatEditChatDefaultBannedRights(ctx context.Context, request *chat.TLChatEditChatDefaultBannedRights) (*mtproto.MutableChat, error)

ChatEditChatDefaultBannedRights chat.editChatDefaultBannedRights chat_id:long operator_id:long banned_rights:ChatBannedRights = MutableChat;

func (*Service) ChatEditChatPhoto

func (s *Service) ChatEditChatPhoto(ctx context.Context, request *chat.TLChatEditChatPhoto) (*mtproto.MutableChat, error)

ChatEditChatPhoto chat.editChatPhoto chat_id:long edit_user_id:long chat_photo:Photo = MutableChat;

func (*Service) ChatEditChatTitle

func (s *Service) ChatEditChatTitle(ctx context.Context, request *chat.TLChatEditChatTitle) (*mtproto.MutableChat, error)

ChatEditChatTitle chat.editChatTitle chat_id:long edit_user_id:long title:string = MutableChat;

func (*Service) ChatEditExportedChatInvite

func (s *Service) ChatEditExportedChatInvite(ctx context.Context, request *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 = Vector<ExportedChatInvite>;

func (*Service) ChatExportChatInvite

func (s *Service) ChatExportChatInvite(ctx context.Context, request *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 (*Service) ChatGetAdminsWithInvites

func (s *Service) ChatGetAdminsWithInvites(ctx context.Context, request *chat.TLChatGetAdminsWithInvites) (*chat.Vector_ChatAdminWithInvites, error)

ChatGetAdminsWithInvites chat.getAdminsWithInvites self_id:long chat_id:long = Vector<ChatAdminWithInvites>;

func (*Service) ChatGetChatBySelfId

func (s *Service) ChatGetChatBySelfId(ctx context.Context, request *chat.TLChatGetChatBySelfId) (*mtproto.MutableChat, error)

ChatGetChatBySelfId chat.getChatBySelfId self_id:long chat_id:long = MutableChat;

func (*Service) ChatGetChatInviteImporters

func (s *Service) ChatGetChatInviteImporters(ctx context.Context, request *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 (*Service) ChatGetChatListByIdList

func (s *Service) ChatGetChatListByIdList(ctx context.Context, request *chat.TLChatGetChatListByIdList) (*chat.Vector_MutableChat, error)

ChatGetChatListByIdList chat.getChatListByIdList self_id:long id_list:Vector<long> = Vector<MutableChat>;

func (*Service) ChatGetChatParticipantIdList

func (s *Service) ChatGetChatParticipantIdList(ctx context.Context, request *chat.TLChatGetChatParticipantIdList) (*chat.Vector_Long, error)

ChatGetChatParticipantIdList chat.getChatParticipantIdList chat_id:long = Vector<long>;

func (*Service) ChatGetExportedChatInvite

func (s *Service) ChatGetExportedChatInvite(ctx context.Context, request *chat.TLChatGetExportedChatInvite) (*mtproto.ExportedChatInvite, error)

ChatGetExportedChatInvite chat.getExportedChatInvite chat_id:long link:string = ExportedChatInvite;

func (*Service) ChatGetExportedChatInvites

func (s *Service) ChatGetExportedChatInvites(ctx context.Context, request *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 (*Service) ChatGetMutableChat

func (s *Service) ChatGetMutableChat(ctx context.Context, request *chat.TLChatGetMutableChat) (*mtproto.MutableChat, error)

ChatGetMutableChat chat.getMutableChat chat_id:long = MutableChat;

func (s *Service) ChatGetMutableChatByLink(ctx context.Context, request *chat.TLChatGetMutableChatByLink) (*mtproto.MutableChat, error)

ChatGetMutableChatByLink chat.getMutableChatByLink link:string = MutableChat;

func (*Service) ChatGetMyChatList

func (s *Service) ChatGetMyChatList(ctx context.Context, request *chat.TLChatGetMyChatList) (*chat.Vector_MutableChat, error)

ChatGetMyChatList chat.getMyChatList user_id:long is_creator:Bool = Vector<MutableChat>;

func (*Service) ChatGetRecentChatInviteRequesters added in v0.90.1

func (s *Service) ChatGetRecentChatInviteRequesters(ctx context.Context, request *chat.TLChatGetRecentChatInviteRequesters) (*chat.RecentChatInviteRequesters, error)

ChatGetRecentChatInviteRequesters chat.getRecentChatInviteRequesters self_id:long chat_id:long = RecentChatInviteRequesters;

func (*Service) ChatGetUsersChatIdList

func (s *Service) ChatGetUsersChatIdList(ctx context.Context, request *chat.TLChatGetUsersChatIdList) (*chat.Vector_UserChatIdList, error)

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

func (*Service) ChatHideChatJoinRequests added in v0.90.1

func (s *Service) ChatHideChatJoinRequests(ctx context.Context, request *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 (*Service) ChatImportChatInvite

func (s *Service) ChatImportChatInvite(ctx context.Context, request *chat.TLChatImportChatInvite) (*mtproto.MutableChat, error)

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

func (*Service) ChatImportChatInvite2 added in v0.90.1

func (s *Service) ChatImportChatInvite2(ctx context.Context, request *chat.TLChatImportChatInvite2) (*chat.ChatInviteImported, error)

ChatImportChatInvite2 chat.importChatInvite2 self_id:long hash:string = ChatInviteImported;

func (*Service) ChatMigratedToChannel

func (s *Service) ChatMigratedToChannel(ctx context.Context, request *chat.TLChatMigratedToChannel) (*mtproto.Bool, error)

ChatMigratedToChannel chat.migratedToChannel chat:MutableChat id:long access_hash:long = Bool;

func (*Service) ChatSearch added in v0.90.1

func (s *Service) ChatSearch(ctx context.Context, request *chat.TLChatSearch) (*chat.Vector_MutableChat, error)

ChatSearch chat.search self_id:long q:string offset:long limit:int = Vector<MutableChat>;

func (*Service) ChatSetChatAvailableReactions added in v0.86.2

func (s *Service) ChatSetChatAvailableReactions(ctx context.Context, request *chat.TLChatSetChatAvailableReactions) (*mtproto.MutableChat, error)

ChatSetChatAvailableReactions chat.setChatAvailableReactions self_id:long chat_id:long available_reactions_type:int available_reactions:Vector<string> = MutableChat;

func (*Service) ChatSetHistoryTTL added in v0.90.0

func (s *Service) ChatSetHistoryTTL(ctx context.Context, request *chat.TLChatSetHistoryTTL) (*mtproto.MutableChat, error)

ChatSetHistoryTTL chat.setHistoryTTL self_id:long chat_id:long ttl_period:int = MutableChat;

func (*Service) ChatToggleNoForwards added in v0.86.3

func (s *Service) ChatToggleNoForwards(ctx context.Context, request *chat.TLChatToggleNoForwards) (*mtproto.MutableChat, error)

ChatToggleNoForwards chat.toggleNoForwards chat_id:long operator_id:long enabled:Bool = MutableChat;

func (*Service) GetServiceContext added in v0.90.4

func (s *Service) GetServiceContext() *svc.ServiceContext

Jump to

Keyboard shortcuts

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