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: 4 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) ChannelsConvertToGigagroup

func (s *Service) ChannelsConvertToGigagroup(ctx context.Context, request *mtproto.TLChannelsConvertToGigagroup) (*mtproto.Updates, error)

ChannelsConvertToGigagroup channels.convertToGigagroup#b290c69 channel:InputChannel = Updates;

func (*Service) GetServiceContext added in v0.96.0

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

func (*Service) MessagesAddChatUser

func (s *Service) MessagesAddChatUser(ctx context.Context, request *mtproto.TLMessagesAddChatUser) (*mtproto.Updates, error)

MessagesAddChatUser messages.addChatUser#f24753e3 chat_id:long user_id:InputUser fwd_limit:int = Updates;

func (*Service) MessagesCreateChat

func (s *Service) MessagesCreateChat(ctx context.Context, request *mtproto.TLMessagesCreateChat) (*mtproto.Updates, error)

MessagesCreateChat messages.createChat#34a818 flags:# users:Vector<InputUser> title:string ttl_period:flags.0?int = Updates;

func (*Service) MessagesDeleteChat

func (s *Service) MessagesDeleteChat(ctx context.Context, request *mtproto.TLMessagesDeleteChat) (*mtproto.Bool, error)

MessagesDeleteChat messages.deleteChat#5bd0ee50 chat_id:long = Bool;

func (*Service) MessagesDeleteChatUser

func (s *Service) MessagesDeleteChatUser(ctx context.Context, request *mtproto.TLMessagesDeleteChatUser) (*mtproto.Updates, error)

MessagesDeleteChatUser messages.deleteChatUser#a2185cab flags:# revoke_history:flags.0?true chat_id:long user_id:InputUser = Updates;

func (*Service) MessagesEditChatAbout

func (s *Service) MessagesEditChatAbout(ctx context.Context, request *mtproto.TLMessagesEditChatAbout) (*mtproto.Bool, error)

MessagesEditChatAbout messages.editChatAbout#def60797 peer:InputPeer about:string = Bool;

func (*Service) MessagesEditChatAdmin

func (s *Service) MessagesEditChatAdmin(ctx context.Context, request *mtproto.TLMessagesEditChatAdmin) (*mtproto.Bool, error)

MessagesEditChatAdmin messages.editChatAdmin#a85bd1c2 chat_id:long user_id:InputUser is_admin:Bool = Bool;

func (*Service) MessagesEditChatDefaultBannedRights

func (s *Service) MessagesEditChatDefaultBannedRights(ctx context.Context, request *mtproto.TLMessagesEditChatDefaultBannedRights) (*mtproto.Updates, error)

MessagesEditChatDefaultBannedRights messages.editChatDefaultBannedRights#a5866b41 peer:InputPeer banned_rights:ChatBannedRights = Updates;

func (*Service) MessagesEditChatPhoto

func (s *Service) MessagesEditChatPhoto(ctx context.Context, request *mtproto.TLMessagesEditChatPhoto) (*mtproto.Updates, error)

MessagesEditChatPhoto messages.editChatPhoto#35ddd674 chat_id:long photo:InputChatPhoto = Updates;

func (*Service) MessagesEditChatTitle

func (s *Service) MessagesEditChatTitle(ctx context.Context, request *mtproto.TLMessagesEditChatTitle) (*mtproto.Updates, error)

MessagesEditChatTitle messages.editChatTitle#73783ffd chat_id:long title:string = Updates;

func (*Service) MessagesGetAllChats

func (s *Service) MessagesGetAllChats(ctx context.Context, request *mtproto.TLMessagesGetAllChats) (*mtproto.Messages_Chats, error)

MessagesGetAllChats messages.getAllChats#875f74be except_ids:Vector<long> = messages.Chats;

func (*Service) MessagesGetChats

func (s *Service) MessagesGetChats(ctx context.Context, request *mtproto.TLMessagesGetChats) (*mtproto.Messages_Chats, error)

MessagesGetChats messages.getChats#49e9528f id:Vector<long> = messages.Chats;

func (*Service) MessagesGetCommonChats

func (s *Service) MessagesGetCommonChats(ctx context.Context, request *mtproto.TLMessagesGetCommonChats) (*mtproto.Messages_Chats, error)

MessagesGetCommonChats messages.getCommonChats#e40ca104 user_id:InputUser max_id:long limit:int = messages.Chats;

func (*Service) MessagesGetFullChat

func (s *Service) MessagesGetFullChat(ctx context.Context, request *mtproto.TLMessagesGetFullChat) (*mtproto.Messages_ChatFull, error)

MessagesGetFullChat messages.getFullChat#aeb00b34 chat_id:long = messages.ChatFull;

func (*Service) MessagesGetMessageReadParticipants2C6F97B7 added in v0.96.0

func (s *Service) MessagesGetMessageReadParticipants2C6F97B7(ctx context.Context, request *mtproto.TLMessagesGetMessageReadParticipants2C6F97B7) (*mtproto.Vector_Long, error)

MessagesGetMessageReadParticipants2C6F97B7 messages.getMessageReadParticipants#2c6f97b7 peer:InputPeer msg_id:int = Vector<long>;

func (*Service) MessagesGetMessageReadParticipants31C1C44F added in v0.96.0

func (s *Service) MessagesGetMessageReadParticipants31C1C44F(ctx context.Context, request *mtproto.TLMessagesGetMessageReadParticipants31C1C44F) (*mtproto.Vector_ReadParticipantDate, error)

MessagesGetMessageReadParticipants31C1C44F messages.getMessageReadParticipants#31c1c44f peer:InputPeer msg_id:int = Vector<ReadParticipantDate>;

func (*Service) MessagesMigrateChat

func (s *Service) MessagesMigrateChat(ctx context.Context, request *mtproto.TLMessagesMigrateChat) (*mtproto.Updates, error)

MessagesMigrateChat messages.migrateChat#a2875319 chat_id:long = Updates;

Jump to

Keyboard shortcuts

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