1

i want to delete service message sent by bot after 60 sec. bot already admin of the group, and i use php for it

when i send https://api.telegram.org/bottoken/sendMessage?chat_id=chatid&text=hello this is bot it returns nothing as it sent from bot

but return parameters like message id, text when a user send a message in a group but nothing when bot sends any message

any way to delete the service message after 60 sec or something like rose bot or groupbutler in php command

CallMeStag
  • 5,467
  • 1
  • 7
  • 22
priyabrata
  • 179
  • 15

1 Answers1

1

The JSON response to your request will contain the JSON serialized message resulting from your request. Citing the docs:

On success, the sent Message is returned.

CallMeStag
  • 5,467
  • 1
  • 7
  • 22
  • can i know how to delete after 60 sec for service message as their is nothing returns when bot send a message(as i said previously it returns from webhook when user send any message in group ) $key = array( "message_auto_delete_time" => 3, ); $keyen = json_encode($key); $url= "https://api.telegram.org/bottoken/sendMessage?chat_id=chatid&text=hello&entities=$keyen"; file_get_contents($url) – priyabrata Feb 22 '22 at 14:30