mirror of
https://github.com/civsocit/olgram.git
synced 2025-05-24 18:43:25 +00:00
Compare commits
2 Commits
65bc807ab7
...
6789d23c28
Author | SHA1 | Date | |
---|---|---|---|
|
6789d23c28 | ||
|
0fd8d541f7 |
|
@ -15,6 +15,9 @@ TOKEN_ENCRYPTION_KEY=SOME_RANDOM_PASSWORD_HERE
|
|||
# use your user id or group chat id to restrict access to the bot
|
||||
# ADMIN_ID=223453418
|
||||
|
||||
# use your user id or group chat id to give selected users access to the bot's general statistics (/info command)
|
||||
# SUPERVISOR_ID=223453419
|
||||
|
||||
# example: 11.143.142.140 or my_domain.com (without quotes, without 'https://' prefix!)
|
||||
WEBHOOK_HOST=YOUR_HOST_HERE
|
||||
|
||||
|
|
|
@ -77,7 +77,7 @@ async def send_user_message(message: types.Message, super_chat_id: int, bot):
|
|||
user_info += message.from_user.full_name
|
||||
if message.from_user.username:
|
||||
user_info += " | @" + message.from_user.username
|
||||
user_info += f" | #{message.from_user.id}"
|
||||
user_info += f" | #ID{message.from_user.id}"
|
||||
|
||||
# Добавлять информацию в конец текста
|
||||
if message.content_type == types.ContentType.TEXT and len(message.text) + len(user_info) < 4093: # noqa:E721
|
||||
|
|
Loading…
Reference in New Issue
Block a user