Documentation
¶
Index ¶
Constants ¶
View Source
const ( EntityTypeMention = "mention" EntityTypeTextMention = "text_mention" EntityTypeHashtag = "hashtag" )
View Source
const (
CommandReported = "dijo"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HashtagEntities ¶
type HashtagEntities []HashtagEntity
func (HashtagEntities) StrHashtags ¶
func (hes HashtagEntities) StrHashtags() []string
type HashtagEntity ¶
type HashtagEntity struct { tgbotapi.MessageEntity // contains filtered or unexported fields }
func NewHashtagEntity ¶
func NewHashtagEntity(entity tgbotapi.MessageEntity, text []uint16) (HashtagEntity, error)
func (HashtagEntity) Hashtag ¶
func (me HashtagEntity) Hashtag() []uint16
func (HashtagEntity) HashtagStr ¶
func (me HashtagEntity) HashtagStr() string
type MentionEntity ¶
type MentionEntity struct { tgbotapi.MessageEntity // contains filtered or unexported fields }
func NewMentionEntity ¶
func NewMentionEntity(entity tgbotapi.MessageEntity, utf16Text []uint16) (MentionEntity, error)
func (MentionEntity) Username ¶
func (me MentionEntity) Username() []uint16
func (MentionEntity) UsernameStr ¶
func (me MentionEntity) UsernameStr() string
type Message ¶
func (Message) Entities ¶
func (m Message) Entities() []tgbotapi.MessageEntity
func (Message) HasHashtag ¶
func (Message) Hashtags ¶
func (m Message) Hashtags() HashtagEntities
Hashtags returns the list of entities of 'hashtag' type. This solution was taked from https://github.com/go-telegram-bot-api/telegram-bot-api/issues/231
func (Message) Mentions ¶
func (m Message) Mentions() []MentionEntity
type TelegramBotUpdateHandler ¶
type TelegramBotUpdateHandler struct {
// contains filtered or unexported fields
}
func NewTelegramBotUpdateHandler ¶
func NewTelegramBotUpdateHandler( updateChan tgbotapi.UpdatesChannel, forwardToChannels command.ForwardToChannelsHandler, ) TelegramBotUpdateHandler
func (*TelegramBotUpdateHandler) Run ¶
func (t *TelegramBotUpdateHandler) Run()
Click to show internal directories.
Click to hide internal directories.