File size: 580 Bytes
fe50c4b | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 | 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)
|