Answer the question
In order to leave comments, you need to log in
How to set a welcome sms to the bot for each new subscriber of the telegram channel?
I wrote a welcome command, asked it through FatherBot. But when a new one subscribes to the channel enters the chat, the bot does not welcome him. Maybe I'm doing something wrong? I'm newbie. Here is the welcome command:
command1-if(message.Type == MessageType.CharMembersAdded) { await Bot.SendTextMessageAsync(message.Chat.Id, $"{name}, Welcome to AIRON's LIFT PLATINUM channel. To learn more about project, click the pinned message above. For all questions, write to @elis_dreamteam!"); Console.WriteLine($"{name} Entered chat"); }
Answer the question
In order to leave comments, you need to log in
Illiterate messages are forbidden to be sent in telegram, that's why you have such problems
Bot.SendTextMessageAsync I think the problem is here. bot.send_message()
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question