1
0
mirror of https://github.com/civsocit/olgram.git synced 2025-05-24 18:43:25 +00:00

Compare commits

...

2 Commits

Author SHA1 Message Date
mihalin
6789d23c28 #ID more useful tag in user info 2022-08-03 00:02:32 +03:00
mihalin
0fd8d541f7 add SUPERVISOR_ID to env example 2022-08-02 23:58:41 +03:00
2 changed files with 4 additions and 1 deletions

View File

@ -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

View File

@ -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