Skip to content
This repository has been archived by the owner on Sep 7, 2022. It is now read-only.

Commit

Permalink
Updated to Telegram Bot API 5.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Lukasss93 committed Nov 9, 2020
1 parent 5713e67 commit 05e5df7
Show file tree
Hide file tree
Showing 38 changed files with 1,191 additions and 719 deletions.
2 changes: 2 additions & 0 deletions src/Constants/Emojis.php
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ class Emojis
public const DICE = '🎲';
public const DART = '🎯';
public const BASKETBALL = '🏀';
public const FOOTBALL = '';
public const SLOT = '🎰';
}
15 changes: 10 additions & 5 deletions src/Constants/TelegramLimits.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,29 +10,34 @@ class TelegramLimits
* For the moment, bots can download files of up to 20MB in size.
*/
public const DOWNLOAD = 20971520;

/**
* Upload file limit in Byte. (50 MB)
*/
public const UPLOAD = 52428800;

/**
* Caption max characters length
*/
public const CAPTION_LENGTH = 1024;

/**
* Text max characters length
*/
public const TEXT_LENGTH = 4096;

/**
* Minimum period in seconds for which the location will be updated (1 minute)
*/
public const MIN_LIVE_PERIOD = 60;

/**
* Maximum period in seconds for which the location will be updated (24 hours)
*/
public const MAX_LIVE_PERIOD = 86400;

/**
* Maximum poll question length
*/
public const POLL_QUESTION_LENGTH = 300;
}
Loading

0 comments on commit 05e5df7

Please sign in to comment.