Documentation ¶
Index ¶
- type Service
- func (s *Service) GetServiceContext() *svc.ServiceContext
- func (s *Service) StatusGetChannelOnlineUsers(ctx context.Context, request *status.TLStatusGetChannelOnlineUsers) (*status.Vector_Long, error)
- func (s *Service) StatusGetUserOnlineSessions(ctx context.Context, request *status.TLStatusGetUserOnlineSessions) (*status.UserSessionEntryList, error)
- func (s *Service) StatusGetUsersOnlineSessionsList(ctx context.Context, request *status.TLStatusGetUsersOnlineSessionsList) (*status.Vector_UserSessionEntryList, error)
- func (s *Service) StatusSetChannelOffline(ctx context.Context, request *status.TLStatusSetChannelOffline) (*mtproto.Bool, error)
- func (s *Service) StatusSetChannelUserOffline(ctx context.Context, request *status.TLStatusSetChannelUserOffline) (*mtproto.Bool, error)
- func (s *Service) StatusSetChannelUsersOnline(ctx context.Context, request *status.TLStatusSetChannelUsersOnline) (*mtproto.Bool, error)
- func (s *Service) StatusSetSessionOffline(ctx context.Context, request *status.TLStatusSetSessionOffline) (*mtproto.Bool, error)
- func (s *Service) StatusSetSessionOnline(ctx context.Context, request *status.TLStatusSetSessionOnline) (*mtproto.Bool, error)
- func (s *Service) StatusSetUserChannelsOffline(ctx context.Context, request *status.TLStatusSetUserChannelsOffline) (*mtproto.Bool, error)
- func (s *Service) StatusSetUserChannelsOnline(ctx context.Context, request *status.TLStatusSetUserChannelsOnline) (*mtproto.Bool, 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) GetServiceContext ¶ added in v0.90.3
func (s *Service) GetServiceContext() *svc.ServiceContext
func (*Service) StatusGetChannelOnlineUsers ¶ added in v0.90.3
func (s *Service) StatusGetChannelOnlineUsers(ctx context.Context, request *status.TLStatusGetChannelOnlineUsers) (*status.Vector_Long, error)
StatusGetChannelOnlineUsers status.getChannelOnlineUsers channel_id:long = Vector<long>;
func (*Service) StatusGetUserOnlineSessions ¶
func (s *Service) StatusGetUserOnlineSessions(ctx context.Context, request *status.TLStatusGetUserOnlineSessions) (*status.UserSessionEntryList, error)
StatusGetUserOnlineSessions status.getUserOnlineSessions user_id:long = UserSessionEntryList;
func (*Service) StatusGetUsersOnlineSessionsList ¶
func (s *Service) StatusGetUsersOnlineSessionsList(ctx context.Context, request *status.TLStatusGetUsersOnlineSessionsList) (*status.Vector_UserSessionEntryList, error)
StatusGetUsersOnlineSessionsList status.getUsersOnlineSessionsList users:Vector<long> = Vector<UserSessionEntryList>;
func (*Service) StatusSetChannelOffline ¶ added in v0.90.4
func (s *Service) StatusSetChannelOffline(ctx context.Context, request *status.TLStatusSetChannelOffline) (*mtproto.Bool, error)
StatusSetChannelOffline status.setChannelOffline channel_id:long = Bool;
func (*Service) StatusSetChannelUserOffline ¶ added in v0.90.3
func (s *Service) StatusSetChannelUserOffline(ctx context.Context, request *status.TLStatusSetChannelUserOffline) (*mtproto.Bool, error)
StatusSetChannelUserOffline status.setChannelUserOffline channel_id:long user_id:long = Bool;
func (*Service) StatusSetChannelUsersOnline ¶ added in v0.90.4
func (s *Service) StatusSetChannelUsersOnline(ctx context.Context, request *status.TLStatusSetChannelUsersOnline) (*mtproto.Bool, error)
StatusSetChannelUsersOnline status.setChannelUsersOnline channel_id:long user_id:long = Bool;
func (*Service) StatusSetSessionOffline ¶
func (s *Service) StatusSetSessionOffline(ctx context.Context, request *status.TLStatusSetSessionOffline) (*mtproto.Bool, error)
StatusSetSessionOffline status.setSessionOffline user_id:long auth_key_id:long = Bool;
func (*Service) StatusSetSessionOnline ¶
func (s *Service) StatusSetSessionOnline(ctx context.Context, request *status.TLStatusSetSessionOnline) (*mtproto.Bool, error)
StatusSetSessionOnline status.setSessionOnline user_id:long session:SessionEntry = Bool;
func (*Service) StatusSetUserChannelsOffline ¶ added in v0.90.3
func (s *Service) StatusSetUserChannelsOffline(ctx context.Context, request *status.TLStatusSetUserChannelsOffline) (*mtproto.Bool, error)
StatusSetUserChannelsOffline status.setUserChannelsOffline user_id:long channels:Vector<long> = Bool;
func (*Service) StatusSetUserChannelsOnline ¶ added in v0.90.3
func (s *Service) StatusSetUserChannelsOnline(ctx context.Context, request *status.TLStatusSetUserChannelsOnline) (*mtproto.Bool, error)
StatusSetUserChannelsOnline status.setUserChannelsOnline user_id:long channels:Vector<long> = Bool;