Skip to content

FastAPI yordamida telegram botni boshlang'ích o'rganuvchi sifatida ishga tushirish loyiha

Notifications You must be signed in to change notification settings

foydamiztegsin/FastAPI_Aiogram

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FastAPI Telegram Bot

  • Loyihani ishga tushirish uchun NGROK ni yuklab olishingiz kerak Ngrok

  • Ketma ketlikni bajaring:

    • Loyiha uchun kerakli paketlarni o'rnating

      pip install -r requirements.txt
      
    • Loyihani ishga tushiring:

      uvicorn main:app
      
    • Ngrok joylashgan papkaga cmd(terminal) orqli kirib oling.

      ngrok http 8000
      
    • Ngrokni ishga tushirganda https://2c1f-84-54-92-191.eu.ngrok.io shunga yaqin url tuzib beradi.Urlni oling va main.py faylidagi WEBHOOK_URL o'zgaruvchisiga quydagi ko'rinishda yozing

      WEBHOOK_URL= "https://2c1f-84-54-92-191.eu.ngrok.io" + WEBHOOK_PATH
      
    • Loyihani qayta ishga tushiring:

      uvicorn main:app
      
    • Bravzer orqali https://api.telegram.org/bot{Bot_Tokeningizni_yozing}/getwebhookinfo shu urlga murojaat qilib ko'ring, json qaytaradi ichidan "result" ni toping va ngrok urlinigiz bilan solishting hammasi to'g'ri bo'lsa Botingizni tekshirish uchun /start komandasini bering!


Mehnatimiz sizga foyda berayotgan bolsa GITHUB profilimizga obuna bo'ling va telegram kanalimizda reaksiyalarni qoldiring 👍

E'tiboringiz uchun rahmat Savollaringiz bo'lsa Telegram

About

FastAPI yordamida telegram botni boshlang'ích o'rganuvchi sifatida ishga tushirish loyiha

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages