I am trying to edit messages on telegram bot with the editMessageText, but it requires a message_id integer, so i need to somehow parse the telegram response when i send a message with
https://api.telegram.org/bot12345:abcdefghijk-lmnopqrstuvwxyz/sendMessage?text=Some%20Text&chat_id=123456789
it will respond with something like this :
{"ok":true,"result":{"message_id":213557,"from":{"id":bot_id,"is_bot":true,"first_name":"BotName","username":"SpaceTheBot"},"chat":{"id":123456789,"title":"A Group","type":"supergroup"},"date":1612928163,"text":"Some text"}}
so i wanna parse the message_id, so i can edit it later on.