Documentation ¶
Index ¶
- func GetCUrrentTime() int64
- type CasResponse
- type Command
- type Config
- type InlineButton
- type SNBot
- func (s *SNBot) ChatBanMember(chatID int64, userID int64) (tgbotapi.Message, error)
- func (s *SNBot) ChatGetAmdins(chatID int64) ([]tgbotapi.ChatMember, error)
- func (s *SNBot) ChatGetMemberInfo(chatID int64, userID int64) (tgbotapi.ChatMember, error)
- func (s *SNBot) ChatIsUserAdmin(chatID int64, userID int64) (bool, error)
- func (s *SNBot) ChatKickMember(chatID int64, userID int64) (tgbotapi.Message, error)
- func (s *SNBot) ChatMuteUser(chatID int64, userID int64, timeMuteOffset int64) (*tgbotapi.APIResponse, error)
- func (s *SNBot) ChatUnbanMember(chatID int64, userID int64) (*tgbotapi.APIResponse, error)
- func (s *SNBot) ChatUnmuteMember(chatID int64, userID int64) (tgbotapi.Message, error)
- func (s *SNBot) CreateInlineKeyboard(keyboard [][]InlineButton) tgbotapi.InlineKeyboardMarkup
- func (s *SNBot) DeleteMessage(chatID int64, messageID int) (*tgbotapi.APIResponse, error)
- func (s *SNBot) EditMessage(chatID int64, msgID int, msg string) (tgbotapi.Message, error)
- func (s *SNBot) EditMessageKeyboard(chatID int64, msgID int, msg string, board tgbotapi.InlineKeyboardMarkup) (tgbotapi.Message, error)
- func (s *SNBot) Forward(chatID int64, fromChatID int64, replyID int) (tgbotapi.Message, error)
- func (s *SNBot) IsCommand(msg *tgbotapi.Message) (bool, Command)
- func (s *SNBot) ReplySend(chatID int64, ReplyToMessageID int, msg string) (tgbotapi.Message, error)
- func (s *SNBot) Send(chatID int64, msg string) (tgbotapi.Message, error)
- func (s *SNBot) SendLocalPhoto(chatID int64, pic string) (tgbotapi.Message, error)
- func (s *SNBot) SendLocalPhotoWithText(chatID int64, pic string, caption string) (tgbotapi.Message, error)
- func (s *SNBot) SendReplyKeyboard(chatID int64, replyID int, msg string, board tgbotapi.InlineKeyboardMarkup) (tgbotapi.Message, error)
- type ServiceTemp
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetCUrrentTime ¶
func GetCUrrentTime() int64
Types ¶
type CasResponse ¶
type CasResponse struct {
Ok bool
}
type InlineButton ¶
type SNBot ¶
type SNBot struct { Cfg *Config Bot *tgbotapi.BotAPI //Upd tgbotapi.UpdatesChannel Upd chan tgbotapi.Update BotInfo tgbotapi.User Conf Config Service ServiceTemp }
func (*SNBot) ChatBanMember ¶
func (*SNBot) ChatGetAmdins ¶
func (s *SNBot) ChatGetAmdins(chatID int64) ([]tgbotapi.ChatMember, error)
func (*SNBot) ChatGetMemberInfo ¶
func (*SNBot) ChatIsUserAdmin ¶
func (*SNBot) ChatKickMember ¶
func (*SNBot) ChatMuteUser ¶
func (*SNBot) ChatUnbanMember ¶
UNRESTRICT
func (*SNBot) ChatUnmuteMember ¶
func (*SNBot) CreateInlineKeyboard ¶
func (s *SNBot) CreateInlineKeyboard(keyboard [][]InlineButton) tgbotapi.InlineKeyboardMarkup
func (*SNBot) DeleteMessage ¶
func (*SNBot) EditMessage ¶
func (*SNBot) EditMessageKeyboard ¶
func (*SNBot) SendLocalPhoto ¶
func (*SNBot) SendLocalPhotoWithText ¶
type ServiceTemp ¶
Click to show internal directories.
Click to hide internal directories.