bipinkrish / Save-Restricted-Bot

A Telegram Bot, Which can send you restricted content by it's post link
193 stars 402 forks source link

Am I doing something wrong? MessageEmpty #4

Closed TruePhad closed 1 year ago

TruePhad commented 1 year ago

I have done everything, I have configured my session, token, hash id, api id, etc. But when I send the post link to my bot I get the following in the console:

pyrogram.errors.exceptions.bad_request_400.MessageEmpty: Telegram says: [400 MESSAGE_EMPTY] - The message sent is empty or contains invalid characters (caused by "messages.SendMessage")

It should be noted that the link I am sending is from a private group, but the session is from my account that is in the group, so I don't know if I am doing something wrong, if you could suggest something it would be great.

bipinkrish commented 1 year ago

Can you give me more info

TruePhad commented 1 year ago

Sorry for the delay, I didn't get the notification on Github, I just checked my mail and you had already answered me, I'm really sorry. Sure, what more information can I provide you?

bipinkrish commented 1 year ago

Like what message you tried this on or this happened before any interaction? Is it private or public? Full related logs if you can.

TruePhad commented 1 year ago

That is correct, the group is private and has this restriction of not being able to save messages. The type of link I have been sending is like this: https://t.me/c/1561578200/2243

The steps I did are as follows:

Maybe in the modifications of those files I did it wrong?

bipinkrish commented 1 year ago

You don't have to give out your private IDs and Tokens, i suggest to revoke your token at botfather.

Are you sure https://t.me/c/1561578200/2243 this message exists? It is not deleted? Because I didn't handled deleted messages.

If you are using private chats means you have to set string session also.

TruePhad commented 1 year ago

Thank you very much, I will try and check everything, I will let you know if it worked.

bipinkrish commented 1 year ago

well...?