tdlib / td

Cross-platform library for building Telegram clients
https://core.telegram.org/tdlib
Boost Software License 1.0
7.11k stars 1.44k forks source link

Question: how to send welcome message for new user in channel by using tdlib #2794

Closed IWantADog closed 8 months ago

IWantADog commented 8 months ago

i find bot cant do that after read telegram-bot document.

search in google but cant find useful info. I want to know how tdlib can get the event when a new user joins

thank you for your answer

levlam commented 8 months ago

Only bots can get an event when a user joins a channel. If the user sent a join request instead, then the bot can contact the user. Otherwise, there is no way to send a welcome message to the user. You can just pin it in the channel instead.