I can see in the logs that sendMessage is called but my Telegram bot did not actually send out the message. This is a snippet of my code:
while let update = bot.nextUpdateSync() {
if let message = update.message, let text = message.text, let from = message.from {
let id = ChatId.chat(message.chat.id)
bot.sendMessageSync(chatId: id, text: "say what \(text)")
bot.sendMessageAsync(chatId: id, text: "CAN SEND PLEASE")
}
}
I've tried manually hitting the send message API on web with my bot token and chat id and it worked, the bot did send the text TestReply:
I can see in the logs that
sendMessage
is called but my Telegram bot did not actually send out the message. This is a snippet of my code:I've tried manually hitting the send message API on web with my bot token and chat id and it worked, the bot did send the text
TestReply
: