???? ???? ?? ??????: ??????? ????

???? ???? ?? ?????? ?? ??? ??? ????? ?? ?????? ?? ?? ????? ?? ?????? ????? ?? ??????? ??? ????? ?????? ????? ????. ?? ???????? ??????? ?? ???????? ?? ??? ????? ??? ??????? ?? ???????? ?????????? ?? ?? ??????? ?? ??? ?????? ???? ?? ????? ????? ?????? ?????? ???? ???? ???? ?????.

????? ???? ???? ??????

  1. ????? BotFather:
    • ?? ??????? @BotFather ?? ????? ????. ??? ???? ?? ????? ?? ?????? ???? ???? ???????? ???? ??? ??????.
  2. ????? ???? ????:
    • ?? ????? ????? /newbot ?? BotFather? ?????? ???? ???? ?? ???? ????.
    • ?? ??? ?????? ?????? ?? ??? ? ??? ?????? ???? ???? ??? ?????? ????. ??? ?????? ???? ????? ?? ??? ???? ? ?? ???? @username@bot ????.
  3. ?????? ????:
    • ?? ?? ????? ????? BotFather ?? ???? ????? ?? ??? ?? ??? ??????. ??? ???? ????? ?? ???? ???? ?????? ?? API ???? ??? ???. ??? ???? ?? ?? ?? ??? ??? ????? ????.
  4. ?????? ?????? ?????:
    • ???? ???????????? ???? ???? ????????? ?? ???????? ???????????? ?????? ????? Python? Node.js? ???? ?… ??????? ????. ?????? ????????? ?? ?????????? ???????? ????? ManyChat ?? BotFather ??????? ???? ?? ?? ??? ????? ??????? ???? ???? ?? ???? ????????????? ???? ??? ?? ??????.
  5. ????? ?????? ????:
    • ?? ??????? ?? API ?????? ? ???? ???????????? ???????? ????????? ???? ??? ??? ?? ???? ???? ????? ????. ??? ???????? ???? ???? ?? ???????? ???????? ????? ????????? ????? ?????????? ?????? ?… ????.
  6. ??? ? ??????????:
    • ?? ?? ????? ????????????? ???? ??? ?? ??? ???? ?? ????? ???? ?? ?? ????? ??? ??????. ??? ???? ?? ?? ?????? ????? ???? ?? ??????? ??????? ?? ?? ????? ????.

???? ???? ?? ?????? ? ???????? Python-Telegram-Bot:

Python

import telegram
from telegram.ext import Updater, CommandHandler

# ??????? YOUR_TOKEN ?? ???? ????? ???? ??? ????
TOKEN = 'YOUR_TOKEN'

def start(update, context):
    context.bot.send_message(chat_id=update.effective_chat.id, text="????! ?? ?? ???? ?????? ????.")

updater = Updater(TOKEN, use_context=True)
dispatcher = updater.dispatcher

start_handler = CommandHandler('start', start)
dispatcher.add_handler(start_handler)

updater.start_polling()

????????? ???????? ??????

  • ????? ?????: ???????? ?? ?????? ?????? ???????? ????? ???????? ? ????????
  • ?????????: ????? ???????? ??????? ??????? ? ???????
  • ?????: ????? ????? ??????? ??????? ???????? ? ????????
  • ??????: ???????? ??????? ???????????? ?…
  • ???????? ????: ????? ??????? ????? ???? ????? ?????? ?…

???? ???

  • ?????: ?? ???? ???? ??? ?????? ????.
  • ??????: ???? ??? ?? ????? ???? ?? ???????? ???? ? ?????? ????? ????.
  • ????????? ????: ???? ?????? ???? ?? ???? ? ???? ??? ????? ????.
  • ???????????: ???? ??? ?? ?? ??? ???? ????????? ???? ?? ?? ???????? ????????? ???????? ????.