L
L
Lemuri2020-11-01 06:08:56
Bots
Lemuri, 2020-11-01 06:08:56

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

2 answer(s)
D
Developer, 2020-11-01
@samodum

Illiterate messages are forbidden to be sent in telegram, that's why you have such problems

A
Akakiy1880, 2020-11-01
@Akakiy1880

Bot.SendTextMessageAsync I think the problem is here. bot.send_message()

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question