bot / bot.py
REDMOOD's picture
Create bot.py
fe50c4b verified
Raw History Blame Contribute Delete
580 Bytes
import telebot
import time
BOT_TOKEN = "6858517910:AAGQ3WoJy1hGPls_cn1IDmd9rV7o8KXn_eM"
bot = telebot.TeleBot(BOT_TOKEN, parse_mode="HTML")
@bot.message_handler(commands=['start'])
def welcome(message):
bot.reply_to(message, "🟢 أهلاً بك! البوت شغال الآن بنجاح وعاش الاستقرار على بيئة Static!")
if __name__ == "__main__":
print("🤖 Bot is running...")
while True:
try:
bot.infinity_polling(timeout=60, long_polling_timeout=60)
except Exception as e:
time.sleep(5)