Documentation
¶
Index ¶
- func Contains(slice interface{}, val interface{}) bool
- func GetChatID(update tgbotapi.Update) (int64, error)
- func GetConfig() (config configuration.Config, err error)
- func GetDomainRegexp(domains []string) (*regexp.Regexp, error)
- func GetInstantViewLink(author string, permalink string) string
- func GetMessageID(update tgbotapi.Update) (int, error)
- func GetUserID(update tgbotapi.Update) (int, error)
- func GetVoteMarkup(voteID int64) tgbotapi.InlineKeyboardMarkup
- func IsVoxPopuli(author string) bool
- func SendComment(author, permalink, text string, config configuration.Config) error
- func Vote(vote models.Vote, database *sql.DB, config configuration.Config) (successVotesCount int, err error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig() (config configuration.Config, err error)
func GetInstantViewLink ¶
func GetMessageID ¶
func GetVoteMarkup ¶
func GetVoteMarkup(voteID int64) tgbotapi.InlineKeyboardMarkup
func IsVoxPopuli ¶
func SendComment ¶
func SendComment(author, permalink, text string, config configuration.Config) error
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.