When admin A requests profile picture of user B, send B's picture and not A's.

This commit is contained in:
Davte 2022-12-06 22:18:35 +01:00
parent e813d37c8f
commit fc486c60ce
Signed by: Davte
GPG Key ID: 70336F92E6814706
2 changed files with 3 additions and 3 deletions

View File

@ -11,7 +11,7 @@ __author__ = "Davide Testa"
__email__ = "davide@davte.it" __email__ = "davide@davte.it"
__credits__ = ["Marco Origlia", "Nick Lee @Nickoala"] __credits__ = ["Marco Origlia", "Nick Lee @Nickoala"]
__license__ = "GNU General Public License v3.0" __license__ = "GNU General Public License v3.0"
__version__ = "2.8.6" __version__ = "2.8.7"
__maintainer__ = "Davide Testa" __maintainer__ = "Davide Testa"
__contact__ = "t.me/davte" __contact__ = "t.me/davte"

View File

@ -617,7 +617,7 @@ async def _authorization_button(bot: Bot,
language=language), language=language),
prefix='auth:///', prefix='auth:///',
delimiter='|', delimiter='|',
data=['picture', user_record['id']] data=['picture', other_user_record['id']]
) )
) )
if len(arguments) > 2: if len(arguments) > 2:
@ -711,7 +711,7 @@ async def _authorization_button(bot: Bot,
language=language), language=language),
prefix='auth:///', prefix='auth:///',
delimiter='|', delimiter='|',
data=['picture', user_record['id']] data=['picture', other_user_record['id']]
) )
) )
reply_markup = make_inline_keyboard(buttons, 1) reply_markup = make_inline_keyboard(buttons, 1)