Py3 Import requests import json def getChatLink(chatid): r = requests.get(F"https://api.telegram.org/bot{bottoken}/getChat?chat_id={chatid}") results

= json.loads(r.content)
return results.get("result").get("invite_link")


maybe this isn't a one time link, but whatever, rtfm for how to do it

2 ответов

21 просмотр

but they want a link _to_ the bot

ЅуѕWΟW64- Автор вопроса
⟨ Simon | Schürrle ⟩
but they want a link _to_ the bot

they're not clear so I'm helping based on my assumptions

Похожие вопросы

Карта сайта