We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Did some experimenting with the photos:
Telegram::Bot::Client.run(token) do |bot| bot.api.get_user_profile_photos(user_id: fake-user-id) end
returns the following
{"ok"=>true, "result"=> {"total_count"=>1, "photos"=> [[{"file_id"=>fake-file-id, "file_size"=>8786, "width"=>160, "height"=>160}, {"file_id"=>fake-file-id-2, "file_size"=>23897, "width"=>320, "height"=>320}, {"file_id"=>fake-file-id-3, "file_size"=>62566, "width"=>640, "height"=>640}]]}}
Did some experimenting with getting profile pics:
Now we can request a link for one of those files:
Telegram::Bot::Client.run(token) do |bot| bot.api.get_file(file_id: fake-file-id) end
This returns:
{"ok"=>true, "result"=>{"file_id"=> fake-file-id, "file_size"=>8786, "file_path"=>"photo/file_0.jpg"}}
The photo can now be downloaded from: https://api.telegram.org/file/bot<token>/photo/file_0.jpg
https://api.telegram.org/file/bot<token>/photo/file_0.jpg
(Link expires after a while though).
The text was updated successfully, but these errors were encountered:
Nice, we could spawn background tasks to do the downloading (using Sidekiq f.e) and store them in S3
Sorry, something went wrong.
Nice, we could create an operation to create a player, and spawn something from there?
And make sure we update any find_or_create's in /commands https://github.com/DefactoSoftware/PickupGameBot/blob/master/lib/pickup_bot/commands/join.rb#L14
find_or_create
/commands
No branches or pull requests
Did some experimenting with the photos:
returns the following
Did some experimenting with getting profile pics:
Now we can request a link for one of those files:
This returns:
The photo can now be downloaded from:
https://api.telegram.org/file/bot<token>/photo/file_0.jpg
(Link expires after a while though).
The text was updated successfully, but these errors were encountered: