информация о пользователе

This commit is contained in:
Artem Tsyrulnikov
2026-01-07 12:22:56 +03:00
parent 5b46737536
commit 3e1ad27c66
17 changed files with 139 additions and 229 deletions

View File

@@ -38,8 +38,18 @@ func main() {
log.Info().Msg("bot starting...")
updateOpts := echotron.UpdateOptions{
AllowedUpdates: []echotron.UpdateType{
echotron.MessageUpdate,
echotron.CallbackQueryUpdate,
echotron.MyChatMemberUpdate,
echotron.ChatMemberUpdate,
echotron.UpdateType("chat_join_request"),
},
}
for {
if err := dsp.Poll(); err != nil {
if err := dsp.PollOptions(false, updateOpts); err != nil {
log.Error().Err(err).Msg("dsp.Poll failed, retrying in 5 seconds...")
time.Sleep(5 * time.Second)
continue