docs icon indicating copy to clipboard operation
docs copied to clipboard

Create Adel

Open Abwdevaa opened this issue 1 year ago • 1 comments

import telebot

استبدل TOKEN_HERE برمز التميز الخاص بك

TOKEN = '7252047204:AAGIkho424SM-S8ifntg951lBnIjOTWumBo'

إنشاء روبوت Telegram

bot = telebot.TeleBot(TOKEN)

معالج بدء التشغيل

@bot.message_handler(commands=['start']) def start(message):     # إرسال رسالة ترحيب إلى المستخدم     bot.send_message(message.chat.id, 'مرحبا بك! هذا روبوت Telegram بسيط.')

إنشاء محدث وإضافة معالج البدء

updater = telebot.Updater(7252047204:AAGIkho424SM-S8ifntg951lBnIjOTWumBo) updater.dispatcher.add_handler(start)

بدء الاستطلاع للرسائل الواردة

updater.start_polling(/start)

Why:

Closes:

What's being changed (if available, include any code snippets, screenshots, or gifs):

Check off the following:

  • [x] I have reviewed my changes in staging, available via the View deployment link in this PR's timeline (this link will be available after opening the PR).

    • For content changes, you will also see an automatically generated comment with links directly to pages you've modified. The comment won't appear if your PR only edits files in the data directory.
  • [x] For content changes, I have completed the self-review checklist.

Abwdevaa avatar Oct 21 '24 06:10 Abwdevaa

Thanks for opening this pull request! A GitHub docs team member should be by to give feedback soon. In the meantime, please check out the contributing guidelines.

welcome[bot] avatar Oct 21 '24 06:10 welcome[bot]