go-telegram / bot

Telegram Bot API Go framework
MIT License
507 stars 46 forks source link

Send foto, send document #8

Closed vv198x closed 1 year ago

vv198x commented 1 year ago

Greetings, I noticed here that the example does not work: send_photo. Also I can't send the document.

negasus commented 1 year ago

send_photo example operate with previously uploaded phote. Try send_photo_upload example with run go run ./examples/send_photo_upload and send any text to the bot

negasus commented 1 year ago

Also I make upload document example. Maybe I make some fixes, if needed

negasus commented 1 year ago

I made a new release. Added upload_document demo

vv198x commented 1 year ago

Yes, the send_photo_upload worked. The senddocument was missing a model. The document i was sent via sendmediagroup. I check senddocument. Thanx!