Documentation
¶
Index ¶
- type MessagesCore
- func (c *MessagesCore) ChannelsGetSendAs(in *mtproto.TLChannelsGetSendAs) (*mtproto.Channels_SendAsPeers, error)
- func (c *MessagesCore) MessagesDeleteHistory(in *mtproto.TLMessagesDeleteHistory) (*mtproto.Messages_AffectedHistory, error)
- func (c *MessagesCore) MessagesDeleteMessages(in *mtproto.TLMessagesDeleteMessages) (*mtproto.Messages_AffectedMessages, error)
- func (c *MessagesCore) MessagesEditMessage(in *mtproto.TLMessagesEditMessage) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesForwardMessages(in *mtproto.TLMessagesForwardMessages) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesGetExtendedMedia(in *mtproto.TLMessagesGetExtendedMedia) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesGetHistory(in *mtproto.TLMessagesGetHistory) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesGetMessageEditData(in *mtproto.TLMessagesGetMessageEditData) (*mtproto.Messages_MessageEditData, error)
- func (c *MessagesCore) MessagesGetMessages(in *mtproto.TLMessagesGetMessages) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesGetMessagesViews(in *mtproto.TLMessagesGetMessagesViews) (*mtproto.Messages_MessageViews, error)
- func (c *MessagesCore) MessagesGetRecentLocations(in *mtproto.TLMessagesGetRecentLocations) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesGetSearchCounters(in *mtproto.TLMessagesGetSearchCounters) (*mtproto.Vector_Messages_SearchCounter, error)
- func (c *MessagesCore) MessagesGetSearchResultsCalendar(in *mtproto.TLMessagesGetSearchResultsCalendar) (*mtproto.Messages_SearchResultsCalendar, error)
- func (c *MessagesCore) MessagesGetSearchResultsPositions(in *mtproto.TLMessagesGetSearchResultsPositions) (*mtproto.Messages_SearchResultsPositions, error)
- func (c *MessagesCore) MessagesGetUnreadMentions(in *mtproto.TLMessagesGetUnreadMentions) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesReadHistory(in *mtproto.TLMessagesReadHistory) (*mtproto.Messages_AffectedMessages, error)
- func (c *MessagesCore) MessagesReadMentions(in *mtproto.TLMessagesReadMentions) (*mtproto.Messages_AffectedHistory, error)
- func (c *MessagesCore) MessagesReadMessageContents(in *mtproto.TLMessagesReadMessageContents) (*mtproto.Messages_AffectedMessages, error)
- func (c *MessagesCore) MessagesReceivedMessages(in *mtproto.TLMessagesReceivedMessages) (*mtproto.Vector_ReceivedNotifyMessage, error)
- func (c *MessagesCore) MessagesSaveDefaultSendAs(in *mtproto.TLMessagesSaveDefaultSendAs) (*mtproto.Bool, error)
- func (c *MessagesCore) MessagesSearch(in *mtproto.TLMessagesSearch) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesSearchGlobal(in *mtproto.TLMessagesSearchGlobal) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesSearchSentMedia(in *mtproto.TLMessagesSearchSentMedia) (*mtproto.Messages_Messages, error)
- func (c *MessagesCore) MessagesSendMedia(in *mtproto.TLMessagesSendMedia) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesSendMessage(in *mtproto.TLMessagesSendMessage) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesSendMultiMedia(in *mtproto.TLMessagesSendMultiMedia) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesToggleNoForwards(in *mtproto.TLMessagesToggleNoForwards) (*mtproto.Updates, error)
- func (c *MessagesCore) MessagesTranslateText(in *mtproto.TLMessagesTranslateText) (*mtproto.Messages_TranslatedText, error)
- func (c *MessagesCore) MessagesUnpinAllMessages(in *mtproto.TLMessagesUnpinAllMessages) (*mtproto.Messages_AffectedHistory, error)
- func (c *MessagesCore) MessagesUpdatePinnedMessage(in *mtproto.TLMessagesUpdatePinnedMessage) (*mtproto.Updates, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessagesCore ¶
type MessagesCore struct { logx.Logger MD *metadata.RpcMetadata // contains filtered or unexported fields }
func New ¶
func New(ctx context.Context, svcCtx *svc.ServiceContext) *MessagesCore
func (*MessagesCore) ChannelsGetSendAs ¶ added in v0.86.0
func (c *MessagesCore) ChannelsGetSendAs(in *mtproto.TLChannelsGetSendAs) (*mtproto.Channels_SendAsPeers, error)
ChannelsGetSendAs channels.getSendAs#dc770ee peer:InputPeer = channels.SendAsPeers;
func (*MessagesCore) MessagesDeleteHistory ¶
func (c *MessagesCore) MessagesDeleteHistory(in *mtproto.TLMessagesDeleteHistory) (*mtproto.Messages_AffectedHistory, error)
MessagesDeleteHistory messages.deleteHistory#b08f922a flags:# just_clear:flags.0?true revoke:flags.1?true peer:InputPeer max_id:int min_date:flags.2?int max_date:flags.3?int = messages.AffectedHistory;
func (*MessagesCore) MessagesDeleteMessages ¶
func (c *MessagesCore) MessagesDeleteMessages(in *mtproto.TLMessagesDeleteMessages) (*mtproto.Messages_AffectedMessages, error)
MessagesDeleteMessages messages.deleteMessages#e58e95d2 flags:# revoke:flags.0?true id:Vector<int> = messages.AffectedMessages;
func (*MessagesCore) MessagesEditMessage ¶
func (c *MessagesCore) MessagesEditMessage(in *mtproto.TLMessagesEditMessage) (*mtproto.Updates, error)
MessagesEditMessage messages.editMessage#48f71778 flags:# no_webpage:flags.1?true peer:InputPeer id:int message:flags.11?string media:flags.14?InputMedia reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.15?int = Updates;
func (*MessagesCore) MessagesForwardMessages ¶
func (c *MessagesCore) MessagesForwardMessages(in *mtproto.TLMessagesForwardMessages) (*mtproto.Updates, error)
MessagesForwardMessages messages.forwardMessages#cc30290b flags:# silent:flags.5?true background:flags.6?true with_my_score:flags.8?true drop_author:flags.11?true drop_media_captions:flags.12?true noforwards:flags.14?true from_peer:InputPeer id:Vector<int> random_id:Vector<long> to_peer:InputPeer schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
func (*MessagesCore) MessagesGetExtendedMedia ¶ added in v0.90.0
func (c *MessagesCore) MessagesGetExtendedMedia(in *mtproto.TLMessagesGetExtendedMedia) (*mtproto.Updates, error)
MessagesGetExtendedMedia messages.getExtendedMedia#84f80814 peer:InputPeer id:Vector<int> = Updates;
func (*MessagesCore) MessagesGetHistory ¶
func (c *MessagesCore) MessagesGetHistory(in *mtproto.TLMessagesGetHistory) (*mtproto.Messages_Messages, error)
MessagesGetHistory messages.getHistory#4423e6c5 peer:InputPeer offset_id:int offset_date:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;
func (*MessagesCore) MessagesGetMessageEditData ¶
func (c *MessagesCore) MessagesGetMessageEditData(in *mtproto.TLMessagesGetMessageEditData) (*mtproto.Messages_MessageEditData, error)
MessagesGetMessageEditData messages.getMessageEditData#fda68d36 peer:InputPeer id:int = messages.MessageEditData;
func (*MessagesCore) MessagesGetMessages ¶
func (c *MessagesCore) MessagesGetMessages(in *mtproto.TLMessagesGetMessages) (*mtproto.Messages_Messages, error)
MessagesGetMessages messages.getMessages#63c66506 id:Vector<InputMessage> = messages.Messages;
func (*MessagesCore) MessagesGetMessagesViews ¶
func (c *MessagesCore) MessagesGetMessagesViews(in *mtproto.TLMessagesGetMessagesViews) (*mtproto.Messages_MessageViews, error)
MessagesGetMessagesViews messages.getMessagesViews#5784d3e1 peer:InputPeer id:Vector<int> increment:Bool = messages.MessageViews;
func (*MessagesCore) MessagesGetRecentLocations ¶
func (c *MessagesCore) MessagesGetRecentLocations(in *mtproto.TLMessagesGetRecentLocations) (*mtproto.Messages_Messages, error)
MessagesGetRecentLocations messages.getRecentLocations#702a40e0 peer:InputPeer limit:int hash:long = messages.Messages;
func (*MessagesCore) MessagesGetSearchCounters ¶
func (c *MessagesCore) MessagesGetSearchCounters(in *mtproto.TLMessagesGetSearchCounters) (*mtproto.Vector_Messages_SearchCounter, error)
MessagesGetSearchCounters messages.getSearchCounters#732eef00 peer:InputPeer filters:Vector<MessagesFilter> = Vector<messages.SearchCounter>;
func (*MessagesCore) MessagesGetSearchResultsCalendar ¶
func (c *MessagesCore) MessagesGetSearchResultsCalendar(in *mtproto.TLMessagesGetSearchResultsCalendar) (*mtproto.Messages_SearchResultsCalendar, error)
MessagesGetSearchResultsCalendar messages.getSearchResultsCalendar#49f0bde9 peer:InputPeer filter:MessagesFilter offset_id:int offset_date:int = messages.SearchResultsCalendar;
func (*MessagesCore) MessagesGetSearchResultsPositions ¶
func (c *MessagesCore) MessagesGetSearchResultsPositions(in *mtproto.TLMessagesGetSearchResultsPositions) (*mtproto.Messages_SearchResultsPositions, error)
MessagesGetSearchResultsPositions messages.getSearchResultsPositions#6e9583a3 peer:InputPeer filter:MessagesFilter offset_id:int limit:int = messages.SearchResultsPositions;
func (*MessagesCore) MessagesGetUnreadMentions ¶
func (c *MessagesCore) MessagesGetUnreadMentions(in *mtproto.TLMessagesGetUnreadMentions) (*mtproto.Messages_Messages, error)
MessagesGetUnreadMentions messages.getUnreadMentions#46578472 peer:InputPeer offset_id:int add_offset:int limit:int max_id:int min_id:int = messages.Messages;
func (*MessagesCore) MessagesReadHistory ¶
func (c *MessagesCore) MessagesReadHistory(in *mtproto.TLMessagesReadHistory) (*mtproto.Messages_AffectedMessages, error)
MessagesReadHistory messages.readHistory#e306d3a peer:InputPeer max_id:int = messages.AffectedMessages;
func (*MessagesCore) MessagesReadMentions ¶
func (c *MessagesCore) MessagesReadMentions(in *mtproto.TLMessagesReadMentions) (*mtproto.Messages_AffectedHistory, error)
MessagesReadMentions messages.readMentions#f0189d3 peer:InputPeer = messages.AffectedHistory;
func (*MessagesCore) MessagesReadMessageContents ¶
func (c *MessagesCore) MessagesReadMessageContents(in *mtproto.TLMessagesReadMessageContents) (*mtproto.Messages_AffectedMessages, error)
MessagesReadMessageContents messages.readMessageContents#36a73f77 id:Vector<int> = messages.AffectedMessages;
func (*MessagesCore) MessagesReceivedMessages ¶
func (c *MessagesCore) MessagesReceivedMessages(in *mtproto.TLMessagesReceivedMessages) (*mtproto.Vector_ReceivedNotifyMessage, error)
MessagesReceivedMessages messages.receivedMessages#5a954c0 max_id:int = Vector<ReceivedNotifyMessage>;
func (*MessagesCore) MessagesSaveDefaultSendAs ¶
func (c *MessagesCore) MessagesSaveDefaultSendAs(in *mtproto.TLMessagesSaveDefaultSendAs) (*mtproto.Bool, error)
MessagesSaveDefaultSendAs messages.saveDefaultSendAs#ccfddf96 peer:InputPeer send_as:InputPeer = Bool;
func (*MessagesCore) MessagesSearch ¶
func (c *MessagesCore) MessagesSearch(in *mtproto.TLMessagesSearch) (*mtproto.Messages_Messages, error)
MessagesSearch messages.search#a0fda762 flags:# peer:InputPeer q:string from_id:flags.0?InputPeer top_msg_id:flags.1?int filter:MessagesFilter min_date:int max_date:int offset_id:int add_offset:int limit:int max_id:int min_id:int hash:long = messages.Messages;
func (*MessagesCore) MessagesSearchGlobal ¶
func (c *MessagesCore) MessagesSearchGlobal(in *mtproto.TLMessagesSearchGlobal) (*mtproto.Messages_Messages, error)
MessagesSearchGlobal messages.searchGlobal#4bc6589a flags:# folder_id:flags.0?int q:string filter:MessagesFilter min_date:int max_date:int offset_rate:int offset_peer:InputPeer offset_id:int limit:int = messages.Messages;
func (*MessagesCore) MessagesSearchSentMedia ¶ added in v0.86.0
func (c *MessagesCore) MessagesSearchSentMedia(in *mtproto.TLMessagesSearchSentMedia) (*mtproto.Messages_Messages, error)
MessagesSearchSentMedia messages.searchSentMedia#107e31a0 q:string filter:MessagesFilter limit:int = messages.Messages;
func (*MessagesCore) MessagesSendMedia ¶
func (c *MessagesCore) MessagesSendMedia(in *mtproto.TLMessagesSendMedia) (*mtproto.Updates, error)
MessagesSendMedia messages.sendMedia#e25ff8e0 flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int media:InputMedia message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
func (*MessagesCore) MessagesSendMessage ¶
func (c *MessagesCore) MessagesSendMessage(in *mtproto.TLMessagesSendMessage) (*mtproto.Updates, error)
MessagesSendMessage messages.sendMessage#d9d75a4 flags:# no_webpage:flags.1?true silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int message:string random_id:long reply_markup:flags.2?ReplyMarkup entities:flags.3?Vector<MessageEntity> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
func (*MessagesCore) MessagesSendMultiMedia ¶
func (c *MessagesCore) MessagesSendMultiMedia(in *mtproto.TLMessagesSendMultiMedia) (*mtproto.Updates, error)
MessagesSendMultiMedia messages.sendMultiMedia#f803138f flags:# silent:flags.5?true background:flags.6?true clear_draft:flags.7?true noforwards:flags.14?true peer:InputPeer reply_to_msg_id:flags.0?int multi_media:Vector<InputSingleMedia> schedule_date:flags.10?int send_as:flags.13?InputPeer = Updates;
func (*MessagesCore) MessagesToggleNoForwards ¶
func (c *MessagesCore) MessagesToggleNoForwards(in *mtproto.TLMessagesToggleNoForwards) (*mtproto.Updates, error)
MessagesToggleNoForwards messages.toggleNoForwards#b11eafa2 peer:InputPeer enabled:Bool = Updates;
func (*MessagesCore) MessagesTranslateText ¶ added in v0.86.0
func (c *MessagesCore) MessagesTranslateText(in *mtproto.TLMessagesTranslateText) (*mtproto.Messages_TranslatedText, error)
MessagesTranslateText messages.translateText#24ce6dee flags:# peer:flags.0?InputPeer msg_id:flags.0?int text:flags.1?string from_lang:flags.2?string to_lang:string = messages.TranslatedText;
func (*MessagesCore) MessagesUnpinAllMessages ¶
func (c *MessagesCore) MessagesUnpinAllMessages(in *mtproto.TLMessagesUnpinAllMessages) (*mtproto.Messages_AffectedHistory, error)
MessagesUnpinAllMessages messages.unpinAllMessages#f025bc8b peer:InputPeer = messages.AffectedHistory;
func (*MessagesCore) MessagesUpdatePinnedMessage ¶
func (c *MessagesCore) MessagesUpdatePinnedMessage(in *mtproto.TLMessagesUpdatePinnedMessage) (*mtproto.Updates, error)
MessagesUpdatePinnedMessage messages.updatePinnedMessage#d2aaf7ec flags:# silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer:InputPeer id:int = Updates;
Source Files
¶
- channels.getSendAs_handler.go
- core.go
- core_messages_helper.go
- messages.deleteHistory_handler.go
- messages.deleteMessages_handler.go
- messages.editMessage_handler.go
- messages.forwardMessages_handler.go
- messages.getExtendedMedia_handler.go
- messages.getHistory_handler.go
- messages.getMessageEditData_handler.go
- messages.getMessagesViews_handler.go
- messages.getMessages_handler.go
- messages.getRecentLocations_handler.go
- messages.getSearchCounters_handler.go
- messages.getSearchResultsCalendar_handler.go
- messages.getSearchResultsPositions_handler.go
- messages.getUnreadMentions_handler.go
- messages.readHistory_handler.go
- messages.readMentions_handler.go
- messages.readMessageContents_handler.go
- messages.receivedMessages_handler.go
- messages.saveDefaultSendAs_handler.go
- messages.searchGlobal_handler.go
- messages.searchSentMedia_handler.go
- messages.search_handler.go
- messages.sendMedia_handler.go
- messages.sendMessage_handler.go
- messages.sendMultiMedia_handler.go
- messages.toggleNoForwards_handler.go
- messages.translateText_handler.go
- messages.unpinAllMessages_handler.go
- messages.updatePinnedMessage_handler.go