1
0
mirror of https://github.com/eternnoir/pyTelegramBotAPI.git synced 2023-08-10 21:12:57 +03:00
Commit Graph

326 Commits

Author SHA1 Message Date
coder2020official
77738b2537 Added is_forum 2022-11-05 23:14:37 +04:00
_run
01be1fb583 Fixes #1650 2022-08-16 21:39:20 +05:00
_run
dd4073fd74 Fixes regarding contains_masks 2022-08-13 13:22:25 +05:00
_run
40698408c9 Bot API 6.2 2022-08-12 22:10:08 +05:00
_run
c5a69944be Documentation improvements and file name fix 2022-08-12 14:33:24 +05:00
_run
65b353ffae Added InputFile 2022-08-01 12:40:43 +05:00
_run
51b2ec701d Removed unecessary methods from documentation(to_json, de_json, to_dict) 2022-07-26 16:27:15 +05:00
_run
3d7f334d79 Updated all docstrings for types(visual) 2022-07-26 16:16:35 +05:00
_run
b0e06253ff Completed docstrings for all files except types.py 2022-07-24 23:14:09 +05:00
Badiboy
78251cdf43 ChatMember type checking reordered 2022-07-04 22:41:01 +03:00
Badiboy
81cbddb8cd Added source data (json_string) to CallbackQuery 2022-07-04 22:36:42 +03:00
Badiboy
f3b1f97362 ChatMember is now typed
https://core.telegram.org/bots/api#chatmember
2022-07-03 23:33:55 +03:00
coder2020official
d7f34ae370 Fix the typo 2022-06-21 15:27:45 +05:00
coder2020official
f52124827f Added all new changes for types (is_premium, added_to_attachment_menu, and etc) 2022-06-21 15:21:35 +05:00
Badiboy
91b665ea94 Poll type parameter parse fix
Plus some typo
2022-05-15 00:59:35 +03:00
Badiboy
7e68721475 class File parse fix 2022-05-08 23:34:56 +03:00
Badiboy
e1dc6d7beb Mistake in ChatAdministratorRights 2022-04-24 23:41:08 +03:00
Badiboy
dd25432359 Bot API 6.0. Deprecation fixes 2022-04-23 15:03:54 +03:00
coder2020official
4812dcb02b Fix typo in types.py 2022-04-22 23:06:11 +05:00
coder2020official
a1bf961fd2 Bump Bot API 6.0(Beta) 2022-04-17 16:39:09 +05:00
coder2020official
a6477541c0 Documentation incorrect display is fixed now. 2022-03-19 13:49:36 +05:00
coder2020official
c8fb83c97c Fix documentation 2022-03-07 14:24:28 +05:00
_run
71be20636a Bot API 5.7 2022-02-01 17:43:49 +04:00
_run
4e7652be7a Bot API 5.7 2022-02-01 14:47:42 +04:00
_run
b71507387f Added spoiler 2022-01-02 14:12:15 +04:00
_run
038be81db3 5.5 2021-12-07 22:17:51 +05:00
Badiboy
9b99bb5f21 Update readme and typo 2021-11-08 18:51:42 +03:00
_run
ed6616e4c7 Bot API 5.4 2021-11-06 12:21:02 +05:00
_run
953e2286b8 Bot API 5.4 2021-11-06 12:15:28 +05:00
_run
06c8782127 Little update
Allowed other handlers, checked methods and other things
2021-11-05 23:22:03 +05:00
Badiboy
a28af3903d Bugfix with one_time_keyboard = False 2021-09-30 11:56:36 +03:00
Badiboy
2bc052ad5a Check and update for full compatibility to Bot API up to 5.3
Pre-release of 4.0.0
2021-08-18 23:27:28 +03:00
Badiboy
fabcd93dd7 API update fix 03 2021-08-18 21:57:56 +03:00
Badiboy
b2b7d90888 API update fix 01 2021-08-18 19:32:43 +03:00
Badiboy
d6501ddc0e Check and update for full compatibility to Bot API up to 5.0 2021-08-18 18:47:38 +03:00
Badiboy
911e356930 BotCommandScopeChatMember fix 2021-08-12 15:16:04 +03:00
snikidev
4ba4bc18cf add extra space 2021-08-03 17:35:59 +01:00
snikidev
c117ff2d50 Add return statement to to_dict() method inside InputInvoiceMessageContent 2021-08-03 17:34:29 +01:00
monosans
097ba9fec2 Replace for loops with comprehensions 2021-07-19 20:03:03 +03:00
Badiboy
6fb10e92e4 Fix CallbackQuery issue for games 2021-07-13 20:11:47 +03:00
Badiboy
beb5a456eb Preserve dict change in Update 2021-07-08 09:35:48 +03:00
SwissCorePy
c7b360e982 fixed bug 2021-07-01 18:54:39 +02:00
SwissCorePy
56e4f68a83 added the property difference to ChatMemberUpdated 2021-06-30 14:16:38 +02:00
SwissCorePy
0aa7a8a8f6 new 5.3 function names
added the new function names (the previous names are still working) from 5.3 and some other small changes
2021-06-28 09:31:06 +02:00
MAIKS1900
491cc05a95 - Set BotCommandScope as abstract class.
- Docstrings from telegram API Scope types
2021-06-27 17:28:11 +03:00
MAIKS1900
3e33b7f1cb Bot API 5.3 changes
- Personalized Commands for different chats
- Custom Placeholders of input field for ReplyKeyboardMarkup and ForceReply.
2021-06-26 14:36:14 +03:00
SwissCorePy
ce991e9ac3 Update types.py
added the missing attributes `can_manage_chat` and `can_manage_voice_chats` to ChatMember class
2021-06-23 22:52:24 +02:00
SwissCorePy
c00595e212 Update types.py
* Added Parameter `caption_entities` to `InputMedia` class
* Added Parameter `disable_content_type_detection` to `InputMediaDocument` class
2021-06-22 15:55:14 +02:00
SwissCorePy
3f46ce3b7b added InputInvoiceMessageContent and tgs_sticker support
and some small changes
2021-06-21 19:59:39 +02:00
SwissCorePy
7118613ef7 Added missing features
* added some missing features of TelegramBotAPI 4.6-5.2 to pyTelegramBotAPI
* added type hints to (almost) all public TeleBot functions
2021-06-21 17:39:13 +02:00
SwissCorePy
0370a9f277 Added class ChatMemberUpdated
* Added class `ChatMemberUpdated` to types
* Simplified `de_json` functions in `WebhookInfo` and `Update` classes (for overall more consistent code)
* changed `options_ids` to ´option_id` in class `PollAnswer`
* Added test for `ChatMemberUpdated` class in `test_types.py` and added the fields `my_chat_member` and `chat_member` to the `Update` class and its tests
2021-06-19 20:13:53 +02:00
SwissCorePy
795f7fff7f Some small changes
* Fixed type warnings in some editors by changing `var: Type = None` to `var: Union[Type, None] = None`
* changed some args from `obj['arg']` to `obj.get('arg')` if arg is optional
* better PEP-8 compliance for less weak warnings
* added tests for the new type `ChatInviteLink`
2021-06-19 17:59:55 +02:00
SwissCorePy
a9ae070256 Update types.py 2021-06-18 22:37:31 +02:00
SwissCorePy
63fe6e01d1 Fixed the errors from my last PRs
I testet all using pytest and python versions 3.6-3.9 on macOS
2021-06-18 22:35:49 +02:00
SwissCorePy
bbafdd1c1d Some Updates
> Added lot of type hints to types.py
> Added some new fields from TelegramBotAPI to pyTelegramBotAPI
> fixed `circular import error in util.py
> Added functions `log_out` and `close` to __init__.py and apihelper.py
> And some more small changes
2021-06-17 20:28:53 +02:00
Badiboy
53c98328c1 send_poll fix with PollOptions
Now send_poll correctly operates with PollOptions passed as array of PollOption.
2021-05-12 00:26:33 +03:00
David256
2f69917a82 Change fstrings to string formatting 2021-04-01 16:52:12 -05:00
David256
6c90da793e New property full_name 2021-04-01 14:56:08 -05:00
Alireza
b684c4f60d Fix Things on copyMessage 2021-01-12 11:17:53 +03:30
Badiboy
6559f431b7 Bot API update
Bot API conformance up to 4.4

Added webhook parameters from 5.0
2020-12-29 19:24:41 +03:00
Badiboy
5824d47590 added only_if_banned to unban_chat_member 2020-11-18 02:22:52 +03:00
Badiboy
fa3ca84d24 Animation content_type
"When you send gif telegram gives you animation and document at same time in update and when you parse that first if is animation and second is document because of this the content_type set document not animation"
2020-11-03 17:46:19 +03:00
andvch
36a3ce62c4
Fix broken text_mention html formatting 2020-10-14 12:06:49 +03:00
Badiboy
00c2e9b51c Piece death fix 2020-09-22 01:41:51 +03:00
Badiboy
29711e2425 Merge remote-tracking branch 'upstream/master' 2020-09-22 01:34:55 +03:00
Badiboy
75a5dd1492 Minor bugfix 2020-09-22 01:34:49 +03:00
meoww-bot
9ab906e60c
fix: simplify code
json.loads(button.to_json()) equals to button.to_dict()
2020-09-02 18:09:14 +08:00
meoww-bot
a803edd09b
fix: button in markup should be obj, not json text 2020-09-02 09:25:23 +08:00
meoww-bot
32a9e65ecc
fix: reply_markup does not change content_type 2020-09-02 09:12:49 +08:00
meoww-bot
decad450d0
feat: make InlineKeyboardMarkup JsonDeserializable
feat: make InlineKeyboardMarkup JsonDeserializable, add de_json func to InlineKeyboardMarkup object
2020-09-01 18:13:22 +08:00
meoww-bot
630a9a5b2c
feat: make InlineKeyboardButton JsonDeserializable
feat: make InlineKeyboardButton JsonDeserializable, add de_json func to InlineKeyboardButton Object
2020-09-01 18:07:45 +08:00
meoww-bot
cdae65116b
feat: make LoginUrl JsonDeserializable
feat: make LoginUrl JsonDeserializable, add de_json func
2020-09-01 18:03:21 +08:00
meoww-bot
6832c33733 feat: Added the field reply_markup to the Message
Added the field `reply_markup` to the Message object
2020-08-31 12:00:56 +00:00
meoww-bot
e811163b5f
UPG: Added the field file_unique_id
Added the field file_unique_id to the objects Animation, Audio, Document, PassportFile, PhotoSize, Sticker, Video, VideoNote, Voice, File and the fields small_file_unique_id and big_file_unique_id to the object ChatPhoto. (Bot API 4.5)
2020-08-29 04:29:02 +08:00
Badiboy
bab9b4077d Bot API support checked/updated up to 4.2 2020-08-25 18:18:51 +03:00
Badiboy
cdd48c7aed Empty list optimization, Py2 arteacts removed,
Empty list optimization: None instead of [].

Py2 arteacts removed: no more six moudle used.
2020-08-24 16:02:35 +03:00
Mr. Dog
ec79d1dc1e
Keyboard bugfix 2020-08-04 23:45:33 +05:00
Badiboy
c6f51f6c55 CopyPaste bugfix 2020-08-04 18:28:35 +03:00
Badiboy
a5fd407eb6 Bugfix and DISABLE_KEYLEN_ERROR
Bugfix and DISABLE_KEYLEN_ERROR to supress keyboard length errors.
2020-08-04 12:29:56 +03:00
Badiboy
cc36207992 Minor keyboard update followup 2020-08-02 18:58:22 +03:00
Mr. Dog
4e5fb59fc0
Replace exceptions with warnings
Also further PIL support added
2020-08-02 20:20:33 +05:00
mrpes
5823ca5613
Minor keyboard code redesign 2020-08-01 01:28:56 +05:00
Badiboy
ce3c91b619
Merge pull request #919 from Badiboy/master
Minor updates in code
2020-07-21 01:27:32 +03:00
Badiboy
dbe9ce49df Minor updates in code 2020-07-21 01:20:01 +03:00
EskiSlav
c533a52e39 Restored necessary comment 2020-07-18 00:25:00 +03:00
EskiSlav
b50eb1bafb Added nested entities from Bot API 4.5 2020-07-17 13:43:45 +03:00
Purya Jafari
49398f5c61
Update types.py
Sending stickers everytime have different file_id, so for detecting special stickers we need a unique parameter.
2020-07-07 01:31:33 +04:30
Kwisatz Haderach
44872ce87d
Complete User Class
Added following fields:
can_join_groups
can_read_all_group_messages
supports_inline_queries
2020-06-22 13:18:13 +02:00
oleg
592dcbfedf Add PollAnswer type;
Add poll_answer_handler
2020-05-18 12:05:30 +05:00
oleg
03b02561a5 Add request_poll attribute to KeyboardButton;
Add KeyboardButtonPollType object
2020-05-18 11:48:54 +05:00
dr_forse
75a018e18b add PollAnswer, poll_answer_handler; make User Serializable and Dictionaryble; some pep fixes 2020-05-12 01:09:34 +01:00
Anthony Byuraev
ee00d0458d Fix some bugs 2020-05-11 22:26:03 +03:00
Anthony Byuraev
a60253bf60 UPG: Add ChatPermissions, set_chat_permissions 2020-05-11 16:38:09 +03:00
Anthony Byuraev
8be9bcc8ed UPG: Add custom_title, slow_mode_delay 2020-05-09 20:28:29 +03:00
Anthony Byuraev
1824637617 UPG: Refactoring InlineKeyboardMarkup 2020-05-09 20:06:33 +03:00
Badiboy
2849e67029 Fix to_dic->to_dict refactoring 2020-05-09 00:51:18 +03:00
Anthony Byuraev
a56fb8cc54 UPG: Add BotCommand, setMyCommands 2020-05-08 21:06:39 +03:00
dr_forse
99c63e9eba add emoji field for dice 2020-04-27 06:30:05 +01:00
Badiboy
bb4f6a7190 Polls are updated to the latest API state.
Polls are updated to the latest API state.

Minor code refactoring.
2020-04-25 22:22:08 +03:00
dr_forse
51b1fb7695 added Dice and send_dice 2020-04-15 06:10:05 +01:00