mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-08 16:04:51 +00:00
Make get_sticker_set_name "private" with a leading underscore _
This commit is contained in:
parent
5edd971118
commit
4b7c6810c0
1 changed files with 2 additions and 2 deletions
|
|
@ -99,7 +99,7 @@ class Sticker(PyrogramType):
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
@lru_cache(maxsize=256)
|
@lru_cache(maxsize=256)
|
||||||
def get_sticker_set_name(send, input_sticker_set_id):
|
def _get_sticker_set_name(send, input_sticker_set_id):
|
||||||
try:
|
try:
|
||||||
return send(
|
return send(
|
||||||
functions.messages.GetStickerSet(
|
functions.messages.GetStickerSet(
|
||||||
|
|
@ -119,7 +119,7 @@ class Sticker(PyrogramType):
|
||||||
|
|
||||||
if isinstance(sticker_set, types.InputStickerSetID):
|
if isinstance(sticker_set, types.InputStickerSetID):
|
||||||
input_sticker_set_id = (sticker_set.id, sticker_set.access_hash)
|
input_sticker_set_id = (sticker_set.id, sticker_set.access_hash)
|
||||||
set_name = Sticker.get_sticker_set_name(client.send, input_sticker_set_id)
|
set_name = Sticker._get_sticker_set_name(client.send, input_sticker_set_id)
|
||||||
else:
|
else:
|
||||||
set_name = None
|
set_name = None
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue