Skip to content

How can I make the bot send a welcome message to a member joining a group? #899

Answered by CrawKatt
CrawKatt asked this question in Q&A
Discussion options

You must be logged in to vote

I found the solution

  1. regarding the problem with the user mention. I tried with the unwrap_or solution but I had an error about expecting an i64 but I found a UserId, which did not allow me to compile. After searching I ended up finding a solution from StackOverflow where they used a Telegram link and that's when it occurred to me to use the user_id inside a format with the tag.

  2. regarding the welcome message bug, the .filter() method solution worked. The problem I had was that I was applying the method backwards, which caused the method to have no effect. Thank you very much for the advice, it was very useful and I learned a lot of new things.

I leave the code of my solution for thos…

Replies: 1 comment 7 replies

Comment options

You must be logged in to vote
7 replies
@WaffleLapkin
Comment options

@CrawKatt
Comment options

@CrawKatt
Comment options

@CrawKatt
Comment options

Answer selected by CrawKatt
@WaffleLapkin
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants