core

package
v0.86.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 21, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DialogCore

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

func New

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

func (*DialogCore) DialogClearAllDrafts

DialogClearAllDrafts dialog.clearAllDrafts user_id:long = Vector<PeerWithDraftMessage>;

func (*DialogCore) DialogClearDraftMessage

func (c *DialogCore) DialogClearDraftMessage(in *dialog.TLDialogClearDraftMessage) (*mtproto.Bool, error)

DialogClearDraftMessage dialog.clearDraftMessage user_id:long peer_type:int peer_id:long = Bool;

func (*DialogCore) DialogDeleteDialog

func (c *DialogCore) DialogDeleteDialog(in *dialog.TLDialogDeleteDialog) (*mtproto.Bool, error)

DialogDeleteDialog dialog.deleteDialog user_id:long peer_type:int peer_id:long = Bool;

func (*DialogCore) DialogDeleteDialogFilter

func (c *DialogCore) DialogDeleteDialogFilter(in *dialog.TLDialogDeleteDialogFilter) (*mtproto.Bool, error)

DialogDeleteDialogFilter dialog.deleteDialogFilter user_id:long id:int = Bool;

func (*DialogCore) DialogEditPeerFolders

func (c *DialogCore) DialogEditPeerFolders(in *dialog.TLDialogEditPeerFolders) (*dialog.Vector_DialogPinnedExt, error)

DialogEditPeerFolders dialog.editPeerFolders user_id:long peer_dialog_list:Vector<long> folder_id:int = Vector<DialogPinnedExt>;

func (*DialogCore) DialogGetAllDrafts

DialogGetAllDrafts dialog.getAllDrafts user_id:long = Vector<PeerWithDraftMessage>;

func (*DialogCore) DialogGetChannelMessageReadParticipants

func (c *DialogCore) DialogGetChannelMessageReadParticipants(in *dialog.TLDialogGetChannelMessageReadParticipants) (*dialog.Vector_Long, error)

DialogGetChannelMessageReadParticipants dialog.getChannelMessageReadParticipants user_id:long channel_id:long msg_id:int = Vector<long>;

func (*DialogCore) DialogGetDialogById

func (c *DialogCore) DialogGetDialogById(in *dialog.TLDialogGetDialogById) (*dialog.DialogExt, error)

DialogGetDialogById dialog.getDialogById user_id:long peer_type:int peer_id:long = DialogExt;

func (*DialogCore) DialogGetDialogFilters

func (c *DialogCore) DialogGetDialogFilters(in *dialog.TLDialogGetDialogFilters) (*dialog.Vector_DialogFilterExt, error)

DialogGetDialogFilters dialog.getDialogFilters user_id:long = Vector<DialogFilterExt>;

func (*DialogCore) DialogGetDialogFolder

func (c *DialogCore) DialogGetDialogFolder(in *dialog.TLDialogGetDialogFolder) (*dialog.Vector_DialogExt, error)

DialogGetDialogFolder dialog.getDialogFolder user_id:long folder_id:int = Vector<DialogExt>;

func (*DialogCore) DialogGetDialogUnreadMarkList

func (c *DialogCore) DialogGetDialogUnreadMarkList(in *dialog.TLDialogGetDialogUnreadMarkList) (*dialog.Vector_DialogPeer, error)

DialogGetDialogUnreadMarkList dialog.getDialogUnreadMarkList user_id:long = Vector<DialogPeer>;

func (*DialogCore) DialogGetDialogs

func (c *DialogCore) DialogGetDialogs(in *dialog.TLDialogGetDialogs) (*dialog.Vector_DialogExt, error)

DialogGetDialogs dialog.getDialogs user_id:long exclude_pinned:Bool folder_id:int = Vector<DialogExt>;

func (*DialogCore) DialogGetDialogsByIdList

func (c *DialogCore) DialogGetDialogsByIdList(in *dialog.TLDialogGetDialogsByIdList) (*dialog.Vector_DialogExt, error)

DialogGetDialogsByIdList dialog.getDialogsByIdList user_id:long id_list:Vector<long> = Vector<DialogExt>;

func (*DialogCore) DialogGetDialogsByOffsetDate

func (c *DialogCore) DialogGetDialogsByOffsetDate(in *dialog.TLDialogGetDialogsByOffsetDate) (*dialog.Vector_DialogExt, error)

DialogGetDialogsByOffsetDate dialog.getDialogsByOffsetDate user_id:long exclude_pinned:Bool offset_date:int limit:int = Vector<DialogExt>;

func (*DialogCore) DialogGetDialogsCount

func (c *DialogCore) DialogGetDialogsCount(in *dialog.TLDialogGetDialogsCount) (*mtproto.Int32, error)

DialogGetDialogsCount dialog.getDialogsCount user_id:long exclude_pinned:Bool folder_id:int = Int32;

func (*DialogCore) DialogGetPinnedDialogs

func (c *DialogCore) DialogGetPinnedDialogs(in *dialog.TLDialogGetPinnedDialogs) (*dialog.Vector_DialogExt, error)

DialogGetPinnedDialogs dialog.getPinnedDialogs user_id:long folder_id:int = Vector<DialogExt>;

func (*DialogCore) DialogGetTopMessage

func (c *DialogCore) DialogGetTopMessage(in *dialog.TLDialogGetTopMessage) (*mtproto.Int32, error)

DialogGetTopMessage dialog.getTopMessage user_id:long peer_type:int peer_id:long = Int32;

func (*DialogCore) DialogGetUserPinnedMessage

func (c *DialogCore) DialogGetUserPinnedMessage(in *dialog.TLDialogGetUserPinnedMessage) (*mtproto.Int32, error)

DialogGetUserPinnedMessage dialog.getUserPinnedMessage user_id:long peer_type:int peer_id:long = Int32;

func (*DialogCore) DialogInsertOrUpdateDialog

func (c *DialogCore) DialogInsertOrUpdateDialog(in *dialog.TLDialogInsertOrUpdateDialog) (*mtproto.Bool, error)

DialogInsertOrUpdateDialog dialog.insertOrUpdateDialog flags:# user_id:long peer_type:int peer_id:long top_message:flags.0?int read_outbox_id:flags.1?int read_inbox_max_id:flags.2?int unread_count:flags.3?int unread_mark:flags.4?true date:int = Bool;

func (*DialogCore) DialogInsertOrUpdateDialogFilter

func (c *DialogCore) DialogInsertOrUpdateDialogFilter(in *dialog.TLDialogInsertOrUpdateDialogFilter) (*mtproto.Bool, error)

DialogInsertOrUpdateDialogFilter dialog.insertOrUpdateDialogFilter user_id:long id:int dialog_filter:DialogFilter = Bool;

func (*DialogCore) DialogMarkDialogUnread

func (c *DialogCore) DialogMarkDialogUnread(in *dialog.TLDialogMarkDialogUnread) (*mtproto.Bool, error)

DialogMarkDialogUnread dialog.markDialogUnread user_id:long peer_type:int peer_id:long unread_mark:Bool = Bool;

func (*DialogCore) DialogReorderPinnedDialogs

func (c *DialogCore) DialogReorderPinnedDialogs(in *dialog.TLDialogReorderPinnedDialogs) (*mtproto.Bool, error)

DialogReorderPinnedDialogs dialog.reorderPinnedDialogs user_id:long force:Bool folder_id:int id_list:Vector<long> = Bool;

func (*DialogCore) DialogSaveDraftMessage

func (c *DialogCore) DialogSaveDraftMessage(in *dialog.TLDialogSaveDraftMessage) (*mtproto.Bool, error)

DialogSaveDraftMessage dialog.saveDraftMessage user_id:long peer_type:int peer_id:long message:DraftMessage = Bool;

func (*DialogCore) DialogToggleDialogPin

func (c *DialogCore) DialogToggleDialogPin(in *dialog.TLDialogToggleDialogPin) (*mtproto.Int32, error)

DialogToggleDialogPin dialog.toggleDialogPin user_id:long peer_type:int peer_id:long pinned:Bool = Int32;

func (*DialogCore) DialogUpdateDialogFiltersOrder

func (c *DialogCore) DialogUpdateDialogFiltersOrder(in *dialog.TLDialogUpdateDialogFiltersOrder) (*mtproto.Bool, error)

DialogUpdateDialogFiltersOrder dialog.updateDialogFiltersOrder user_id:long order:Vector<long> = Bool;

func (*DialogCore) DialogUpdateReadInbox

func (c *DialogCore) DialogUpdateReadInbox(in *dialog.TLDialogUpdateReadInbox) (*mtproto.Bool, error)

DialogUpdateReadInbox dialog.updateReadInbox user_id:long peer_type:int peer_id:long read_inbox_id:int = Bool;

func (*DialogCore) DialogUpdateReadOutbox

func (c *DialogCore) DialogUpdateReadOutbox(in *dialog.TLDialogUpdateReadOutbox) (*mtproto.Bool, error)

DialogUpdateReadOutbox dialog.updateReadOutbox user_id:long peer_type:int peer_id:long read_outbox_id:int = Bool;

func (*DialogCore) DialogUpdateUserPinnedMessage

func (c *DialogCore) DialogUpdateUserPinnedMessage(in *dialog.TLDialogUpdateUserPinnedMessage) (*mtproto.Bool, error)

DialogUpdateUserPinnedMessage dialog.updateUserPinnedMessage user_id:long peer_type:int peer_id:long pinned_msg_id:int = Bool;

Jump to

Keyboard shortcuts

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