4 Antworten
+ 6
Giovanni Paolo Balestriere you can share code here someone else solve your code and don't dm me personally
+ 5
Please share complete your code
I heard about chatgpt can create telegram bot so you can take help from chatgpt also or you can also help from some youtube tutorials according to your understanding
https://youtu.be/227uk4kDTM8
+ 5
More information can be found here:
https://docs.python.org/3/library/asyncio.html
0
from telegram import Update
from telegram.ext import ApplicationBuilder, ContextTypes, CommandHandler
async def start(Update, ContextTypes):
await ContextTypes.bot.send_message(chat_id=Update.effective_chat.id, text="I'm a bot, please talk to me!")
application = ApplicationBuilder().token('TOKEN').build()
start_handler = CommandHandler('start', start)
application.add_handler(start_handler)
application.run_polling()