Update Bots Telegram

This commit is contained in:
2024-07-10 01:06:53 +02:00
parent 62d0ec78b5
commit 5821636a01
8 changed files with 1 additions and 1 deletions

View File

@@ -0,0 +1,16 @@
import telebot
import os
from dotenv import load_dotenv
load_dotenv('.env')
BOT_TOKEN = os.getenv('BOT_TOKEN')
bot = telebot.TeleBot(BOT_TOKEN)
@bot.message_handler(commands=['get_group_id'])
def get_group_id(message):
chat_id = message.chat.id
bot.reply_to(message, f"El ID de este grupo es: {chat_id}")
bot.polling()