Skip to content

Instantly share code, notes, and snippets.

@dmytrostriletskyi
Created February 14, 2018 22:14
Show Gist options
  • Save dmytrostriletskyi/b8dbd2b56130332081475e32cdf52c16 to your computer and use it in GitHub Desktop.
Save dmytrostriletskyi/b8dbd2b56130332081475e32cdf52c16 to your computer and use it in GitHub Desktop.
An example of using generated widget with view's context
def callback(request):
telegram_login_widget = create_callback_login_widget(bot_name, size=SMALL)
context = {'telegram_login_widget': telegram_login_widget}
return render(request, 'telegram_auth/callback.html', context)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment