B
B
Bahodir Ismatov2020-10-22 00:04:02
PHP
Bahodir Ismatov, 2020-10-22 00:04:02

How to get information when editing Telegram API message?

How to get information when editing a post? For example, in python:

@bot.edited_message_handler(func=lambda message: True)

How is it in php?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
L
Lesha, 2020-10-22
@Baxa94

https://core.telegram.org/bots/webhooks#testing-yo...

{ "update_id":10000,
"edited_message":{
  "date":1441645532,
  "chat":{
     "last_name":"Test Lastname",
     "type": "private",
     "id":1111111,
     "first_name":"Test Firstname",
     "username":"Testusername"
  },
  "message_id":1365,
  "from":{
     "last_name":"Test Lastname",
     "id":1111111,
     "first_name":"Test Firstname",
     "username":"Testusername"
  },
  "text":"Edited text",
  "edit_date": 1441646600
}
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question