grammY icon indicating copy to clipboard operation
grammY copied to clipboard

how to fix: chat_member update is not sent

Open mzoterov opened this issue 2 years ago • 0 comments

For developers who run into the same problem as me, here is the solution!

If the chat_member update is not sent, run your bot with all available update types. If only chat_member is in allowed_updates, other events will be ignored!

[
       `chat_member`,
       `edited_message`,
       `channel_post`,
       `edited_channel_post`,
       `inline_query`,
       `chosen_inline_result`,
       `callback_query`,
       `shipping_query`,
       `pre_checkout_query`,
       `poll`,
       `poll_answer`,
       `my_chat_member`,
       `chat_member`,
       `chat_join_request`,
       `message`
]

await bot.start({
     allowed_updates: [/*...*/],
});

// Or start with runner

run(bot, undefined, {
     allowed_updates: [/*...*/],
});

p.s. Thanks very much for solution: @Heero_T and @Loskir (1, 2)

mzoterov avatar Aug 14 '22 18:08 mzoterov