如何解决如何从电报会话中保存数据 - django
我有一个电报机器人,它发送一个链接让用户使用 twitch 进行身份验证,显然当 twitch 发送响应时只给我有关登录的 twitch 用户的信息,我如何获得诸如谁是电报用户的信息点击链接? 我问了一个类似的问题 here,但现在我意识到我不明白该怎么做(无论如何,我收到的答案可能对你更有用)。
views.py
@csrf_exempt
def telegramBot(request): #function that handles telegram messages
return telegramBotFunction(request) #return a http response
#the user is redirected here after login with twitch,how can i get the telegram id?
def verify(request):
return gestioneVerificaAuth(request) #return HttpResponse("<h2> Twitch user is subscribed/or not to streamer X <h2>)
编辑:更新代码
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。