from telegram import Update
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes


async def gid(update: Update, context: ContextTypes.DEFAULT_TYPE) -> None:
    await update.message.reply_text(f'Group ID is: {update.message.gr}')


app = ApplicationBuilder().token("613157406:AAEZB6Uk9BKzjIn7z7L6jNnTCV8JWCqyH74").build()

app.add_handler(CommandHandler("gid", gid))

app.run_polling()