Why i get Wrong file identifier/HTTP URL specified error in telegram bot?

后端 未结 2 1415
伪装坚强ぢ
伪装坚强ぢ 2021-01-16 10:23

I\'m new in telegram bot and try to send photo to user with this code:

await Bot.SendPhotoAsync(update.Message.Chat.Id, \"http://182.126.201.42/\" + \"i         


        
2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-16 10:59

    The problem can be originated from the following issues:

    • the image file extension is not allowed by the telegram.
    • file size is larger than that allowed by the telegram.

    You can start with the former one.

提交回复
热议问题