'raise ValueError('%r does not appear to be an IPv4 or IPv6 address' % ValueError: 'api.telegram.org' does not appear to be an IPv4 or IPv6 address
import signal from telegram import Update
from telegram.ext import ApplicationBuilder, CommandHandler, ContextTypes
async def hello(update, context):
await update.message.reply_text(f'Hello {update.effective_user.first_name}')
app = ApplicationBuilder().token("5357948376:AAG3LEWIYTFA1oTSYiRztOzsniv4BTySaB4").build()
app.add_handler(CommandHandler("hello", hello))
app.run_polling(stop_signals=None)
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
