Skip to content

Instantly share code, notes, and snippets.

View RubyOcelot's full-sized avatar

loliw RubyOcelot

  • UC Irvine
  • Irvine, California, USA
View GitHub Profile
@RubyOcelot
RubyOcelot / get_chat_id.py
Last active August 15, 2021 09:19
telegram bot get chat id
from telegram.ext import Updater, MessageHandler, CallbackContext
from telegram.ext.filters import Filters
import requests
#require python-telegram-bot requests(optional)
def show_id(update,context):
bot=context.bot
chat_id = update.message.chat_id
print(chat_id)
if(chat_id<0):

Keybase proof

I hereby claim:

  • I am rubyocelot on github.
  • I am rubyocelot (https://keybase.io/rubyocelot) on keybase.
  • I have a public key ASCvOx5bWOg5BdkSj9JZD3PJfezn40xWsLGRRZbCbASu3wo

To claim this, I am signing this object: