Or:
Code: Select all
CompilerIf #PB_Compiler_Version < 600
InitNetwork()
CompilerEndIf
Code: Select all
CompilerIf #PB_Compiler_Version < 600
InitNetwork()
CompilerEndIf
Code: Select all
XIncludeFile "PureTelegram.pbi"
#BotAPIToken = "[your bot's API token]"
#ChatID = "[your chat's ID or username]"
txt.s = "Hello Telegram world."
mid.i = Telegram_PostText(#BotAPIToken,#ChatID,txt)
Your ChatID start with a: "-" (minus sign)?
YesCaronte3D wrote: Wed Jun 25, 2025 11:18 am BTW... Have you created and added the Telegram bot to the group?
Code: Select all
#ChatIDWD = "-1305835971919" ; GroupID
#BotAPITokenWD = "5640952673:AAB2ZZ1Vq6peruVnwIxYbu3qrgE68pyaKX8"
Telegram_PostText(#BotAPITokenWD, #ChatIDWD, "⚠️ Warning!")
Code: Select all
XIncludeFile "PureTelegram.pbi"
#BotAPIToken = "[7620816597:AAHhBvBM9qqlZ1arXJKmhFGTR_EfFcwaPGk]"
#ChatID = "[1701234043]"
txt.s = "Test"
mid.i = Telegram_PostText(#BotAPIToken,#ChatID,txt)
Code: Select all
#BotAPIToken = "[your bot's API token]"
#ChatID = "[your chat's ID or username]"