Versions in this module Expand all Collapse all v0 v0.2.0 Feb 17, 2020 Changes in this version + type Rtjc struct + Port int + Submitter Submitter + func (l Rtjc) Listen(ctx context.Context) + type Submitter interface + Submit func(ctx context.Context, text string, pin bool) error + type SuperUser []string + func (s SuperUser) IsSuper(userName string) bool + type TelegramListener struct + AllActivityTerm Terminator + Bots bot.Interface + BotsActivityTerm Terminator + Debug bool + Group string + IdleDuration time.Duration + MsgLogger msgLogger + SuperUsers SuperUser + TbAPI tbAPI + func (l *TelegramListener) Do(ctx context.Context) (err error) + func (l *TelegramListener) Submit(ctx context.Context, text string, pin bool) error + type Terminator struct + AllowedPeriod time.Duration + BanDuration time.Duration + BanPenalty int + Exclude SuperUser