Documentation ¶
Index ¶
- type Service
- func (s *Service) AccountCreateTheme(ctx context.Context, request *mtproto.TLAccountCreateTheme) (*mtproto.Theme, error)
- func (s *Service) AccountGetChatThemesD638DE89(ctx context.Context, request *mtproto.TLAccountGetChatThemesD638DE89) (*mtproto.Account_Themes, error)
- func (s *Service) AccountGetChatThemesD6D71D7B(ctx context.Context, request *mtproto.TLAccountGetChatThemesD6D71D7B) (*mtproto.Account_ChatThemes, error)
- func (s *Service) AccountGetTheme(ctx context.Context, request *mtproto.TLAccountGetTheme) (*mtproto.Theme, error)
- func (s *Service) AccountGetThemes(ctx context.Context, request *mtproto.TLAccountGetThemes) (*mtproto.Account_Themes, error)
- func (s *Service) AccountInstallTheme(ctx context.Context, request *mtproto.TLAccountInstallTheme) (*mtproto.Bool, error)
- func (s *Service) AccountSaveTheme(ctx context.Context, request *mtproto.TLAccountSaveTheme) (*mtproto.Bool, error)
- func (s *Service) AccountUpdateTheme(ctx context.Context, request *mtproto.TLAccountUpdateTheme) (*mtproto.Theme, error)
- func (s *Service) AccountUploadTheme(ctx context.Context, request *mtproto.TLAccountUploadTheme) (*mtproto.Document, error)
- func (s *Service) MessagesSetChatTheme(ctx context.Context, request *mtproto.TLMessagesSetChatTheme) (*mtproto.Updates, 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) AccountCreateTheme ¶
func (s *Service) AccountCreateTheme(ctx context.Context, request *mtproto.TLAccountCreateTheme) (*mtproto.Theme, error)
AccountCreateTheme account.createTheme#652e4400 flags:# slug:string title:string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;
func (*Service) AccountGetChatThemesD638DE89 ¶
func (s *Service) AccountGetChatThemesD638DE89(ctx context.Context, request *mtproto.TLAccountGetChatThemesD638DE89) (*mtproto.Account_Themes, error)
AccountGetChatThemesD638DE89 account.getChatThemes#d638de89 hash:long = account.Themes;
func (*Service) AccountGetChatThemesD6D71D7B ¶
func (s *Service) AccountGetChatThemesD6D71D7B(ctx context.Context, request *mtproto.TLAccountGetChatThemesD6D71D7B) (*mtproto.Account_ChatThemes, error)
AccountGetChatThemesD6D71D7B account.getChatThemes#d6d71d7b hash:int = account.ChatThemes;
func (*Service) AccountGetTheme ¶
func (s *Service) AccountGetTheme(ctx context.Context, request *mtproto.TLAccountGetTheme) (*mtproto.Theme, error)
AccountGetTheme account.getTheme#8d9d742b format:string theme:InputTheme document_id:long = Theme;
func (*Service) AccountGetThemes ¶
func (s *Service) AccountGetThemes(ctx context.Context, request *mtproto.TLAccountGetThemes) (*mtproto.Account_Themes, error)
AccountGetThemes account.getThemes#7206e458 format:string hash:long = account.Themes;
func (*Service) AccountInstallTheme ¶
func (s *Service) AccountInstallTheme(ctx context.Context, request *mtproto.TLAccountInstallTheme) (*mtproto.Bool, error)
AccountInstallTheme account.installTheme#c727bb3b flags:# dark:flags.0?true theme:flags.1?InputTheme format:flags.2?string base_theme:flags.3?BaseTheme = Bool;
func (*Service) AccountSaveTheme ¶
func (s *Service) AccountSaveTheme(ctx context.Context, request *mtproto.TLAccountSaveTheme) (*mtproto.Bool, error)
AccountSaveTheme account.saveTheme#f257106c theme:InputTheme unsave:Bool = Bool;
func (*Service) AccountUpdateTheme ¶
func (s *Service) AccountUpdateTheme(ctx context.Context, request *mtproto.TLAccountUpdateTheme) (*mtproto.Theme, error)
AccountUpdateTheme account.updateTheme#2bf40ccc flags:# format:string theme:InputTheme slug:flags.0?string title:flags.1?string document:flags.2?InputDocument settings:flags.3?Vector<InputThemeSettings> = Theme;
func (*Service) AccountUploadTheme ¶
func (s *Service) AccountUploadTheme(ctx context.Context, request *mtproto.TLAccountUploadTheme) (*mtproto.Document, error)
AccountUploadTheme account.uploadTheme#1c3db333 flags:# file:InputFile thumb:flags.0?InputFile file_name:string mime_type:string = Document;
func (*Service) MessagesSetChatTheme ¶
func (s *Service) MessagesSetChatTheme(ctx context.Context, request *mtproto.TLMessagesSetChatTheme) (*mtproto.Updates, error)
MessagesSetChatTheme messages.setChatTheme#e63be13f peer:InputPeer emoticon:string = Updates;