Versions in this module Expand all Collapse all v0 v0.0.0 Jan 16, 2022 Changes in this version + type BoolQuestionConfig struct + CallbackFalse func() + CallbackTrue func() + ID int64 + Question string + TextAfterClick string + TextFalse string + TextTrue string + type Config struct + Bot *tgbotapi.BotAPI + RistrettoConfig *ristretto.Config + type QuestionConfig struct + Callback func() + DoubleCheck bool + DoubleCheckButtonNo string + DoubleCheckButtonYes string + DoubleCheckQuestion string + ID int64 + Question string + Result chan string + type TGQ struct + func Init(c Config) (*TGQ, error) + func (tgq *TGQ) DoBoolQuestion(qc BoolQuestionConfig) + func (tgq *TGQ) DoQuestion(qc QuestionConfig) error + func (tgq *TGQ) Update(update tgbotapi.Update) bool