Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Create 1-click Telegram invite links using the API

Tags:

telegram

I have this private telegram channel which I'll charge for access (premium content). I just have found that now you can create a temporary invite link that expires by time or by number of clicks (see attachment). This would be great to automate my payment process as I could generate a unique link for each new customer that makes a payment, so they can only use once, and won't be able to share to others.

Any ideas on how to generate this links using the API? This feature must be really new as I haven't found anything in the documentation.

Many thanks in advance, Ed

printscreen

like image 278
EduardoT80 Avatar asked Apr 13 '26 21:04

EduardoT80


1 Answers

  1. Open API docs
  2. Press CTRL+F (or CMD+F on Mac)
  3. Type link, press Enter and RTM

Example: https://core.telegram.org/bots/api#createchatinvitelink

Also look at the member_limit param for this method.

like image 116
Oleg Avatar answered Apr 15 '26 13:04

Oleg



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!