Arman92 / go-tdlib

Golang Telegram TdLib JSON bindings
GNU General Public License v3.0
437 stars 100 forks source link

forwardMessage: message to forward not found #39

Open clevertechru opened 4 years ago

clevertechru commented 4 years ago
ERRO[0036] message repost failed. msg: {"id":94371840,"chat_id":-478600149,"sender_user_id":112620069,"is_outgoing":false,"content":{"@type":"messageText","text":{"@type":"formattedText","text":"yep","entities":[]}}}. tgbot.request: request api failed. code: 400, description: Bad Request: message to forward not found, method: forwardMessage, req: {"chat_id":-1001363008951,"from_chat_id":-478600149,"message_id":94371840}
for msg := range p.client.ListenNewMessages() {
  err = p.bot.ForwardMessage(int64(chatId), msg.ChatId, msg.Id)
  if err != nil {
    logger.Errorf("message repost failed. msg: %s. %+v", msg, err)
  }
}
spaumx commented 2 years ago

did you solve this problem?

clevertechru commented 2 years ago

no