So I've made a bot using @BotFather and I messaged it from my account. Then I found out the id of my account using @userinfobot and sent this request:
https://api.telegram.org/botTOKEN/sendMessage?chat_id=id&text=test
and it works fine ok:true
.
However if I try to use my @username instead of id:
https://api.telegram.org/botTOKENg/sendMessage?chat_id=@username&text=test
I get an error:
{
"ok": false,
"error_code": 400,
"description": "Bad Request: chat not found"
}
Looking at my past code, the @
method used to work for me before. Have things changed?