Commit Graph

121 Commits

Author SHA1 Message Date
levlam
81b2334a31 Fix media_group_id of messages automatically forwarded to discussion group. 2020-11-26 19:31:07 +03:00
Giuseppe Marino
55ee7aed4a
Skip check only if not supergroup 2020-11-24 09:22:16 +01:00
Giuseppe Marino
b99c85a726
Allow check_message for non-member channels/SGs 2020-11-23 23:44:34 +01:00
levlam
4d025b1c9b Safer handling of negative monotonic time. 2020-11-21 17:46:18 +03:00
levlam
79134758a8 Use "time" for monotonic time variables. 2020-11-21 17:38:11 +03:00
Jannik
d9b1d58b66
Receive Updates for Media with destruction timer 2020-11-19 17:18:49 +01:00
giuseppeM99
e762e9e832
Merge pull request #5 from code1mountain/verified_scam
Added is_verified and is_scam
2020-11-18 17:04:39 +01:00
Jannik
e247007199 Added ping command 2020-11-18 07:04:03 -08:00
Jannik
e79d3b775e
Added is_verified and is_scam to User and Chat objects 2020-11-18 15:11:47 +01:00
b3c0c403e8
Fix typos 2020-11-12 23:40:31 +01:00
8524f94883
Add --no-file-limit option
Co-Authored-By: giuseppeM99 <giuseppe.marino1999@gmail.com>
2020-11-12 23:15:49 +01:00
Giuseppe Marino
25d1ee172b
add --max-batch-operations parameter (default 10000) 2020-11-11 20:09:21 +01:00
Giuseppe Marino
fc0a6e10cc
td splits automatically 2020-11-11 20:09:21 +01:00
Giuseppe Marino
cb7dcb5c0b
Implemented deleteMessages method
parameters:
- chat_id the chat_id of the supergroup or channel
- start first message id to delete
- end last message id to delete
the method will always return `true` as a result, even if the messages 
cannot be deleted
this method does not work on private chat or normal groups
it is not suggested to delete more than 200 messages per call
2020-11-11 20:09:21 +01:00
Giuseppe Marino
0c5a139146
added is_deleted field in User type 2020-11-11 20:09:20 +01:00
Giuseppe Marino
00165a7ef5
Clang format 2020-11-11 20:09:20 +01:00
Giuseppe Marino
0624215988
Implemented getParticipants
- method `getParticipants` : `chat_id`, `type`
-- `type` is string, possible values are
    `members`, `parameters`, `admins`, `administators`, `restricted`, 
`banned`, `bots`
-- return type: array of `ChatMember`

- edits to the `ChatMember` type:
-- now the full bot list is returned
-- new `joined_date` field (type integer)
-- new `inviter` field (type User)
2020-11-11 20:09:20 +01:00
Giuseppe Marino
a5a0c49467
Custom methods
* Added custom methods
  - getMessageInfo
  - getParticipants
  - deleteMessages
  - toggleGroupInvite

* Implemented method getMessageInfo
* added `views` field and `forwards` field to message
* getChat now resolves the username also for users

* Added custom executable flags
  - relative : use relative path for files in local mode
  - insecure (not implemented) : allow http connection in non-local mode
2020-11-10 16:14:44 +01:00
Andrea Cavalli
01c4a80ceb Implement optimize_memory correctly 2020-11-08 17:30:06 +01:00
Andrea Cavalli
f4e3987860 Add optimize_memory command 2020-11-05 13:12:05 +01:00
levlam
74559bab15 Telegram Bot APi server initial commit. 2020-11-03 19:34:10 +03:00