Documentation
¶
Index ¶
- type Service
- func (s *Service) GetServiceContext() *svc.ServiceContext
- func (s *Service) MessagesGetDialogUnreadMarks(ctx context.Context, request *mtproto.TLMessagesGetDialogUnreadMarks) (*mtproto.Vector_DialogPeer, error)
- func (s *Service) MessagesGetDialogs(ctx context.Context, request *mtproto.TLMessagesGetDialogs) (*mtproto.Messages_Dialogs, error)
- func (s *Service) MessagesGetOnlines(ctx context.Context, request *mtproto.TLMessagesGetOnlines) (*mtproto.ChatOnlines, error)
- func (s *Service) MessagesGetPeerDialogs(ctx context.Context, request *mtproto.TLMessagesGetPeerDialogs) (*mtproto.Messages_PeerDialogs, error)
- func (s *Service) MessagesGetPeerSettings(ctx context.Context, request *mtproto.TLMessagesGetPeerSettings) (*mtproto.Messages_PeerSettings, error)
- func (s *Service) MessagesGetPinnedDialogs(ctx context.Context, request *mtproto.TLMessagesGetPinnedDialogs) (*mtproto.Messages_PeerDialogs, error)
- func (s *Service) MessagesHidePeerSettingsBar(ctx context.Context, request *mtproto.TLMessagesHidePeerSettingsBar) (*mtproto.Bool, error)
- func (s *Service) MessagesMarkDialogUnread(ctx context.Context, request *mtproto.TLMessagesMarkDialogUnread) (*mtproto.Bool, error)
- func (s *Service) MessagesReorderPinnedDialogs(ctx context.Context, request *mtproto.TLMessagesReorderPinnedDialogs) (*mtproto.Bool, error)
- func (s *Service) MessagesSendScreenshotNotification(ctx context.Context, request *mtproto.TLMessagesSendScreenshotNotification) (*mtproto.Updates, error)
- func (s *Service) MessagesSetHistoryTTL(ctx context.Context, request *mtproto.TLMessagesSetHistoryTTL) (*mtproto.Updates, error)
- func (s *Service) MessagesSetTyping(ctx context.Context, request *mtproto.TLMessagesSetTyping) (*mtproto.Bool, error)
- func (s *Service) MessagesToggleDialogPin(ctx context.Context, request *mtproto.TLMessagesToggleDialogPin) (*mtproto.Bool, error)
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) GetServiceContext ¶ added in v0.96.0
func (s *Service) GetServiceContext() *svc.ServiceContext
func (*Service) MessagesGetDialogUnreadMarks ¶
func (s *Service) MessagesGetDialogUnreadMarks(ctx context.Context, request *mtproto.TLMessagesGetDialogUnreadMarks) (*mtproto.Vector_DialogPeer, error)
MessagesGetDialogUnreadMarks messages.getDialogUnreadMarks#22e24e22 = Vector<DialogPeer>;
func (*Service) MessagesGetDialogs ¶
func (s *Service) MessagesGetDialogs(ctx context.Context, request *mtproto.TLMessagesGetDialogs) (*mtproto.Messages_Dialogs, error)
MessagesGetDialogs messages.getDialogs#a0f4cb4f flags:# exclude_pinned:flags.0?true folder_id:flags.1?int offset_date:int offset_id:int offset_peer:InputPeer limit:int hash:long = messages.Dialogs;
func (*Service) MessagesGetOnlines ¶
func (s *Service) MessagesGetOnlines(ctx context.Context, request *mtproto.TLMessagesGetOnlines) (*mtproto.ChatOnlines, error)
MessagesGetOnlines messages.getOnlines#6e2be050 peer:InputPeer = ChatOnlines;
func (*Service) MessagesGetPeerDialogs ¶
func (s *Service) MessagesGetPeerDialogs(ctx context.Context, request *mtproto.TLMessagesGetPeerDialogs) (*mtproto.Messages_PeerDialogs, error)
MessagesGetPeerDialogs messages.getPeerDialogs#e470bcfd peers:Vector<InputDialogPeer> = messages.PeerDialogs;
func (*Service) MessagesGetPeerSettings ¶ added in v0.87.1
func (s *Service) MessagesGetPeerSettings(ctx context.Context, request *mtproto.TLMessagesGetPeerSettings) (*mtproto.Messages_PeerSettings, error)
MessagesGetPeerSettings messages.getPeerSettings#efd9a6a2 peer:InputPeer = messages.PeerSettings;
func (*Service) MessagesGetPinnedDialogs ¶
func (s *Service) MessagesGetPinnedDialogs(ctx context.Context, request *mtproto.TLMessagesGetPinnedDialogs) (*mtproto.Messages_PeerDialogs, error)
MessagesGetPinnedDialogs messages.getPinnedDialogs#d6b94df2 folder_id:int = messages.PeerDialogs;
func (*Service) MessagesHidePeerSettingsBar ¶
func (s *Service) MessagesHidePeerSettingsBar(ctx context.Context, request *mtproto.TLMessagesHidePeerSettingsBar) (*mtproto.Bool, error)
MessagesHidePeerSettingsBar messages.hidePeerSettingsBar#4facb138 peer:InputPeer = Bool;
func (*Service) MessagesMarkDialogUnread ¶
func (s *Service) MessagesMarkDialogUnread(ctx context.Context, request *mtproto.TLMessagesMarkDialogUnread) (*mtproto.Bool, error)
MessagesMarkDialogUnread messages.markDialogUnread#c286d98f flags:# unread:flags.0?true peer:InputDialogPeer = Bool;
func (*Service) MessagesReorderPinnedDialogs ¶
func (s *Service) MessagesReorderPinnedDialogs(ctx context.Context, request *mtproto.TLMessagesReorderPinnedDialogs) (*mtproto.Bool, error)
MessagesReorderPinnedDialogs messages.reorderPinnedDialogs#3b1adf37 flags:# force:flags.0?true folder_id:int order:Vector<InputDialogPeer> = Bool;
func (*Service) MessagesSendScreenshotNotification ¶
func (s *Service) MessagesSendScreenshotNotification(ctx context.Context, request *mtproto.TLMessagesSendScreenshotNotification) (*mtproto.Updates, error)
MessagesSendScreenshotNotification messages.sendScreenshotNotification#c97df020 peer:InputPeer reply_to_msg_id:int random_id:long = Updates;
func (*Service) MessagesSetHistoryTTL ¶
func (s *Service) MessagesSetHistoryTTL(ctx context.Context, request *mtproto.TLMessagesSetHistoryTTL) (*mtproto.Updates, error)
MessagesSetHistoryTTL messages.setHistoryTTL#b80e5fe4 peer:InputPeer period:int = Updates;
func (*Service) MessagesSetTyping ¶
func (s *Service) MessagesSetTyping(ctx context.Context, request *mtproto.TLMessagesSetTyping) (*mtproto.Bool, error)
MessagesSetTyping messages.setTyping#58943ee2 flags:# peer:InputPeer top_msg_id:flags.0?int action:SendMessageAction = Bool;
func (*Service) MessagesToggleDialogPin ¶
func (s *Service) MessagesToggleDialogPin(ctx context.Context, request *mtproto.TLMessagesToggleDialogPin) (*mtproto.Bool, error)
MessagesToggleDialogPin messages.toggleDialogPin#a731e257 flags:# pinned:flags.0?true peer:InputDialogPeer = Bool;