Skip to content

A php script which works with Telegram Bot API to show a photo by its file_id.

License

Notifications You must be signed in to change notification settings

bruninoit/getPhotoByFileID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

getPhotoByFileID

A php script which works with Telegram Bot API to show a photo by its file_id.

Simply rename the file token.php.example in token.php and put your bot token into the $api var.

Once uploaded on a web server, you can access photos from telegram using the url

http://example.com/getPhotoByFileID/?file_id=FILEIDFROMTELEGRAM

To enable the bot, just set the webhook using the setwebhook method

https://api.telegram.org/botTOKENHERE/setwebhook?url=https://examplce.com/getPhotoByFileID/bot.php

You MUST have HTTPS

About

A php script which works with Telegram Bot API to show a photo by its file_id.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages