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) GetServiceContext added in v0.96.0

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

func (*Service) MessageGetHistoryMessages

func (s *Service) MessageGetHistoryMessages(ctx context.Context, request *message.TLMessageGetHistoryMessages) (*message.Vector_MessageBox, error)

MessageGetHistoryMessages message.getHistoryMessages user_id:long peer_type:int peer_id:long offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = Vector<MessageBox>;

func (*Service) MessageGetHistoryMessagesCount

func (s *Service) MessageGetHistoryMessagesCount(ctx context.Context, request *message.TLMessageGetHistoryMessagesCount) (*mtproto.Int32, error)

MessageGetHistoryMessagesCount message.getHistoryMessagesCount user_id:long peer_type:int peer_id:long = Int32;

func (*Service) MessageGetLastTwoPinnedMessageId

func (s *Service) MessageGetLastTwoPinnedMessageId(ctx context.Context, request *message.TLMessageGetLastTwoPinnedMessageId) (*message.Vector_Int, error)

MessageGetLastTwoPinnedMessageId message.getLastTwoPinnedMessageId user_id:long peer_type:int peer_id:long = Vector<int>;

func (*Service) MessageGetPeerUserMessage

func (s *Service) MessageGetPeerUserMessage(ctx context.Context, request *message.TLMessageGetPeerUserMessage) (*mtproto.MessageBox, error)

MessageGetPeerUserMessage message.getPeerUserMessage user_id:long peer_user_id:long msg_id:int = MessageBox;

func (*Service) MessageGetPeerUserMessageId

func (s *Service) MessageGetPeerUserMessageId(ctx context.Context, request *message.TLMessageGetPeerUserMessageId) (*mtproto.Int32, error)

MessageGetPeerUserMessageId message.getPeerUserMessageId user_id:long peer_user_id:long msg_id:int = Int32;

func (*Service) MessageGetPinnedMessageIdList

func (s *Service) MessageGetPinnedMessageIdList(ctx context.Context, request *message.TLMessageGetPinnedMessageIdList) (*message.Vector_Int, error)

MessageGetPinnedMessageIdList message.getPinnedMessageIdList user_id:long peer_type:int peer_id:long = Vector<int>;

func (*Service) MessageGetSearchCounter

func (s *Service) MessageGetSearchCounter(ctx context.Context, request *message.TLMessageGetSearchCounter) (*mtproto.Int32, error)

MessageGetSearchCounter message.getSearchCounter user_id:long peer_type:int peer_id:long media_type:int = Int32;

func (*Service) MessageGetUnreadMentions

func (s *Service) MessageGetUnreadMentions(ctx context.Context, request *message.TLMessageGetUnreadMentions) (*message.Vector_MessageBox, error)

MessageGetUnreadMentions message.getUnreadMentions user_id:long peer_type:int peer_id:long offset_id:int add_offset:int limit:int min_id:int max_int:int = Vector<MessageBox>;

func (*Service) MessageGetUnreadMentionsCount

func (s *Service) MessageGetUnreadMentionsCount(ctx context.Context, request *message.TLMessageGetUnreadMentionsCount) (*mtproto.Int32, error)

MessageGetUnreadMentionsCount message.getUnreadMentionsCount user_id:long peer_type:int peer_id:long = Int32;

func (*Service) MessageGetUserMessage

func (s *Service) MessageGetUserMessage(ctx context.Context, request *message.TLMessageGetUserMessage) (*mtproto.MessageBox, error)

MessageGetUserMessage message.getUserMessage user_id:long id:int = MessageBox;

func (*Service) MessageGetUserMessageList

func (s *Service) MessageGetUserMessageList(ctx context.Context, request *message.TLMessageGetUserMessageList) (*message.Vector_MessageBox, error)

MessageGetUserMessageList message.getUserMessageList user_id:long id_list:Vector<int> = Vector<MessageBox>;

func (*Service) MessageGetUserMessageListByDataIdList

func (s *Service) MessageGetUserMessageListByDataIdList(ctx context.Context, request *message.TLMessageGetUserMessageListByDataIdList) (*message.Vector_MessageBox, error)

MessageGetUserMessageListByDataIdList message.getUserMessageListByDataIdList user_id:long id_list:Vector<long> = Vector<MessageBox>;

func (*Service) MessageGetUserMessageListByDataIdUserIdList added in v0.87.3

func (s *Service) MessageGetUserMessageListByDataIdUserIdList(ctx context.Context, request *message.TLMessageGetUserMessageListByDataIdUserIdList) (*message.Vector_MessageBox, error)

MessageGetUserMessageListByDataIdUserIdList message.getUserMessageListByDataIdUserIdList id:long user_id_list:Vector<long> = Vector<MessageBox>;

func (*Service) MessageSearch

func (s *Service) MessageSearch(ctx context.Context, request *message.TLMessageSearch) (*mtproto.MessageBoxList, error)

MessageSearch message.search user_id:long peer_type:int peer_id:long q:string offset:int limit:int = MessageBoxList;

func (*Service) MessageSearchByMediaType

func (s *Service) MessageSearchByMediaType(ctx context.Context, request *message.TLMessageSearchByMediaType) (*mtproto.MessageBoxList, error)

MessageSearchByMediaType message.searchByMediaType user_id:long peer_type:int peer_id:long media_type:int offset:int limit:int = MessageBoxList;

func (*Service) MessageSearchByPinned

func (s *Service) MessageSearchByPinned(ctx context.Context, request *message.TLMessageSearchByPinned) (*mtproto.MessageBoxList, error)

MessageSearchByPinned message.searchByPinned user_id:long peer_type:int peer_id:long = MessageBoxList;

func (*Service) MessageSearchGlobal

func (s *Service) MessageSearchGlobal(ctx context.Context, request *message.TLMessageSearchGlobal) (*mtproto.MessageBoxList, error)

MessageSearchGlobal message.searchGlobal user_id:long q:string offset:int limit:int = MessageBoxList;

func (*Service) MessageSearchV2 added in v0.86.3

func (s *Service) MessageSearchV2(ctx context.Context, request *message.TLMessageSearchV2) (*mtproto.MessageBoxList, error)

MessageSearchV2 message.searchV2 user_id:long peer_type:int peer_id:long q:string from_id:long min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:long = MessageBoxList;

func (*Service) MessageUnPinAllMessages

func (s *Service) MessageUnPinAllMessages(ctx context.Context, request *message.TLMessageUnPinAllMessages) (*message.Vector_Int, error)

MessageUnPinAllMessages message.unPinAllMessages user_id:long peer_type:int peer_id:long = Vector<int>;

func (*Service) MessageUpdatePinnedMessageId

func (s *Service) MessageUpdatePinnedMessageId(ctx context.Context, request *message.TLMessageUpdatePinnedMessageId) (*mtproto.Bool, error)

MessageUpdatePinnedMessageId message.updatePinnedMessageId user_id:long peer_type:int peer_id:long id:int pinned:Bool = Bool;

Jump to

Keyboard shortcuts

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