我有一个电报机器人,它发送一个链接,让用户通过twitch进行身份验证,很明显,当twitch发送响应时,只会给我有关登录的twitch用户的信息,我如何获得诸如谁是点击链接的电报用户之类的信息? 我问了一个类似的问题here,但现在我意识到我不知道该怎么做(无论如何,我收到的答案可能对你更有用)
视图.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>)
编辑:更新代码
目前没有回答
相关问题 更多 >
编程相关推荐