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
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.
Related
I just need that my telegram bot would sent a message to my e-mail. For example, my bot has a form that user need to fill out, and I just want to get results from bot to be appeared in my e-mail. The form of the bot was developed in ManyBot. I have found several results on passing e-mail message into telegram
How can I receive messages from Telegram from URL ?
I can send message, if I make request on url:
https://api.telegram.org/bot%s/sendMessage?chat_id=%s&text=%s
I just need to enter "bot api token", "chat ID" and "text". I need something similar but I need to read messages in chat.
I'm getting the token from the firebase using the client end and passing it to the server/backend for storage, but when I call subscribe to topic using that firebase token on the server, I'm getting
{"error":"No information found about this instance id."}.
This happens almost all the time, but sometimes it works, I don't seem to understand what is happening here?
I started receiving this message in a response with 404 as the status code when the client unregistered from push notifications on the client side (when he/she did logout, for example, I unregister the user from receiving push notifications in the app). The next time the client logged in, he/she received a new registration token.
I don't know if and when your app unregisters from push notifications, and if this is the only case in which such response errors happen, but that was the reason in my case, and it could be yours too.
When I try to subscribe/unsubscribe from topics and receive 404 when accessing https://iid.googleapis.com/iid/[...], I simply invalidate the respective registration id in my codebase so as to ignore it (and stop trying to subscribe or unsubscribe again).
In the documentation, in the final section that is about Error Responses, it says:
HTTP status 404 (Not found) - Invalid HTTP path or IID token not
found. Check error messages for detailed information.
I'm pretty much sure that the url must be valid, otherwise it should give errors when testing, so I assume that the token (registration id) is invalid. I would prefer that the error returned a code such as InvalidRegistration (like the error codes that are returned when sending push notifications), but for now the error is a normal text message (for the 404 error), so I base myself only in the status.
I hope it helps.
I'm trying to use the Instagram Realtime API with a Meteor app. Basically you can subscribe to a tag get latest posts.
So I need to setup a callback URL and send a post request with my callbackurl, the object & fields that I want to subscribe and a verify string. A Instagram server is sending a get request with my verify string and a random string (challenge) and the Meteor server has to respond to this with the challenge string.
I'm getting the following error serverside:
error_message: 'Challenge verification failed. Sent "b58b60bb367d40148defa4e6240b2dc2", received "<!DOCTYPE> html..."..etc
In order to verify the subscription, your server must respond to the GET request with the hub.challenge parameter only.
How do I respond to instagram API with the hub.challenge parameter.
Resources:
http://instagram.com/developer/realtime/#
I need to send updates via SignalR to a users "Friends", not all connected users.
Clients.callbackName()
Sends a message to All Connected Clients. How do I send a message to just a few clients?
You can specify the connection id or group name. Check out the docs for more info:
http://www.asp.net/signalr/overview/signalr-20/hubs-api/hubs-api-guide-server
To add a client to a specific group...
Groups.Add(Context.ConnectionId, "johnsFriends");
To send a message to that clients group of friends...
Clients["johnsFriends"].addMessage(message);
Then on the client side the "addMessage" method will be invoked for all clients in the group "johnsFriends".