информация о пользователе
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user