core

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MsgCore

type MsgCore struct {
	logx.Logger
	MD *metadata.RpcMetadata
	// contains filtered or unexported fields
}

func New

func New(ctx context.Context, svcCtx *svc.ServiceContext) *MsgCore

func (*MsgCore) MsgDeleteChatHistory

func (c *MsgCore) MsgDeleteChatHistory(in *msg.TLMsgDeleteChatHistory) (*mtproto.Bool, error)

MsgDeleteChatHistory msg.deleteChatHistory chat_id:long delete_user_id:long = Bool;

func (*MsgCore) MsgDeleteHistory

func (c *MsgCore) MsgDeleteHistory(in *msg.TLMsgDeleteHistory) (*mtproto.Messages_AffectedHistory, error)

MsgDeleteHistory msg.deleteHistory user_id:long auth_key_id:long peer_type:int peer_id:long just_clear:Bool revoke:Bool = messages.AffectedHistory;

func (*MsgCore) MsgDeleteMessages

func (c *MsgCore) MsgDeleteMessages(in *msg.TLMsgDeleteMessages) (*mtproto.Messages_AffectedMessages, error)

MsgDeleteMessages msg.deleteMessages user_id:long auth_key_id:long peer_type:int peer_id:long revoke:Bool id:Vector<int> = messages.AffectedMessages;

func (*MsgCore) MsgDeletePhoneCallHistory

MsgDeletePhoneCallHistory msg.deletePhoneCallHistory user_id:long auth_key_id:long revoke:Bool = messages.AffectedFoundMessages;

func (*MsgCore) MsgEditMessage

func (c *MsgCore) MsgEditMessage(in *msg.TLMsgEditMessage) (*mtproto.Updates, error)

MsgEditMessage msg.editMessage user_id:long auth_key_id:long peer_type:int peer_id:long message:OutboxMessage = Updates;

func (*MsgCore) MsgPushUserMessage

func (c *MsgCore) MsgPushUserMessage(in *msg.TLMsgPushUserMessage) (*mtproto.Bool, error)

MsgPushUserMessage msg.pushUserMessage user_id:long auth_key_id:long (UserMessage) = Bool;

func (*MsgCore) MsgReadHistory

MsgReadHistory msg.readHistory user_id:long auth_key_id:long peer_type:int peer_id:long max_id:int = messages.AffectedMessages;

func (*MsgCore) MsgReadMessageContents

func (c *MsgCore) MsgReadMessageContents(in *msg.TLMsgReadMessageContents) (*mtproto.Messages_AffectedMessages, error)

MsgReadMessageContents msg.readMessageContents user_id:long auth_key_id:long peer_type:int peer_id:long id:Vector<ContentMessage> = messages.AffectedMessage;

func (*MsgCore) MsgSendMessage

func (c *MsgCore) MsgSendMessage(in *msg.TLMsgSendMessage) (*mtproto.Updates, error)

MsgSendMessage msg.sendMessage user_id:long auth_key_id:long peer_type:int peer_id:long message:OutboxMessage = Updates;

func (*MsgCore) MsgSendMessageV2

func (c *MsgCore) MsgSendMessageV2(in *msg.TLMsgSendMessageV2) (*mtproto.UpdateList, error)

MsgSendMessageV2 msg.sendMessageV2 user_id:long auth_key_id:long peer_type:int peer_id:long message:Vector<OutboxMessage> = UpdateList;

func (*MsgCore) MsgSendMultiMessage

func (c *MsgCore) MsgSendMultiMessage(in *msg.TLMsgSendMultiMessage) (*mtproto.Updates, error)

MsgSendMultiMessage msg.sendMultiMessage user_id:long auth_key_id:long peer_type:int peer_id:long message:Vector<OutboxMessage> = Updates;

func (*MsgCore) MsgUnpinAllMessages

func (c *MsgCore) MsgUnpinAllMessages(in *msg.TLMsgUnpinAllMessages) (*mtproto.Messages_AffectedHistory, error)

MsgUnpinAllMessages msg.unpinAllMessages user_id:long auth_key_id:long peer_type:int peer_id:long = messages.AffectedHistory;

func (*MsgCore) MsgUpdatePinnedMessage

func (c *MsgCore) MsgUpdatePinnedMessage(in *msg.TLMsgUpdatePinnedMessage) (*mtproto.Updates, error)

MsgUpdatePinnedMessage msg.updatePinnedMessage flags:# user_id:long auth_key_id:long silent:flags.0?true unpin:flags.1?true pm_oneside:flags.2?true peer_type:int peer_id:long id:int = Updates;

Jump to

Keyboard shortcuts

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