pyTelegramBotAPI Error code: 400. Description: Bad Request: have no rights to send a message - bots

Someone drops my bot down and then the same guy turn my bot on, I got a error:
(init.py:1083 MainThread) ERROR - TeleBot: "Threaded polling exception: A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: have no rights to send a message"
How can I fix it?

Related

Forwarding messages from Telegram Bot

I need to do the following:
user sends all kind of messages to my bot;
bot should forward the particular messages to my channel like this:
bot.forward_message(chat_id='my_chat_id', from_chat_id='my_chat_id_from_which_I_am_forwarding', message_id=message.message_id)
However, I am getting this error:
ERROR - init:__threaded_polling:515 - A request to the Telegram API was unsuccessful. Error code: 400. Description: Bad Request: message to forward not found, 2021-03-09 18:44:15,950
When I debug this, message.message_id and message.text are correct. Does anybody have any ideas or suggestions?
bot.forward_message(
chat_id="#channel",
from_chat_id="chat_id_from_which_I_am_forwarding",
message_id=message.message_id)
You need to add the bot as admin in the channel!!

Twitter API issue (code: 349, message: 'You cannot send messages to this user.') in node.js

I am sending message by using direct_messages/events/new method in Node.js by using API,
But i am getting the errors like { code: 349, message: 'You cannot send messages to this user.' }
please help me to solve this issue.
Thanks
If the user is not following you or has blocked you, then you will not be able to send messages to the user.
You can also send messages to a user that is not following you but has DM'd you (e.g. if your id accepts DMs without requiring mutual following). However, if the user is not following you/has blocked you (as mentioned by Andy Piper) or has not DM'd you, you'll receive the "code: 349, message: 'You cannot send messages to this user.'" error. Tested via postman using the direct message api (https://api.twitter.com/1.1/direct_messages/events/new.json).

Job schedule entry could not be created. Status code: 500

I have received the following error when trying to save a DSX Scheduled Job:
Job schedule entry could not be created. Status code: 500
Screenshot of the error message:
I've tried about six times over the last few hours and have consistently received the above error message.
Debugging via the browser network inspection tool I can see:
{
"code":"CDSX.N.1001",
"message":"The service is not responding, try again later.",
"description":"",
"httpMethod":"POST",
"url":"https://batch-schedule-prod.spark.bluemix.net:12100/schedules",
"qs":"",
"body":"While attempting to get Bluemix Token from BlueIDToken, unable to retrieve AccessToken, failed with status 400 Bad Request, message = {\"error\":\"invalid_grant\",\"error_description\":\"A redirect_uri can only be used by implicit or authorization_code grant types.\"} Entity: {\"error\":\"invalid_grant\",\"error_description\":\"A redirect_uri can only be used by implicit or authorization_code grant types.\"}",
"statusCode":500,
"duration":666,
"expectedStatusCode":201
}
As per Charles comment, the functionality is working ok now. I guess if this happens to another user some time in the future they should contact support.

Playhaven HTTP error= "403 Forbidden" response= "invalid signature";}

I am a newby who purchased a reskin app and I'm having problems when trying to get the ads to pop up while in Xcode 7 testing on my iphone. I followed the steps to enter the token and secret ID codes after registering the app in playhaven but I keep getting the below error when running the test on Xcode in the debug area.
Stackoverflow is my last resort as the guy who sold me the app can't help...
Playhaven-1.24.0 Request received HTTP response: 403
Playhaven-1.24.0 Request finished
Playhaven-1.24.0 Server response
errorbj - null
error - 403 Forbidden
response - invalid signature
I have tried the new SDK but get more errors/bugs
Please help me
Thanks so much
Andy
Seems like playhavens end doesnt communicate with my account and token codes etc, same with Startapp!

Stripe Webhooks Pending Status Test webhook error: 500

I got Test webhook error: 500 Error in Response? Why?
How to resolve the problem? What is 500 error Status mean?
With code 500 it is Internal Server error. So looks like the issue is on the server side.
Please see the various status codes for your reference, this will help you with debugging web requests.
http://www.w3.org/Protocols/HTTP/HTRESP.html

Resources