Hello, the telegram documentation says that I can pass the timezone offset in seconds parameter, please tell me how to do this using teleton?
https://core.telegram.org/method/initConnection
or use sendcode requests for check if it return sms , then maybe that phone not have account before
Читать полностью…Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon
, since most problems have already been fixed in newer versions.
one is likely the channel where you want to update the username, and the username is the new one you should use
Читать полностью…client(
channels.CheckUsernameRequest(
channel='username',
username='some string here'
)
)
username
and channel
?
Читать полностью…
channels.CheckUsernameRequest()
account.CheckUsernameRequest()
what is the difference between these
text is paths ['media\\stickers\\AnimatedSticker.tgs', 'media\\stickers\\sticker.webm']
Читать полностью…You can't anymore, for recent file_ids. you have to decode the base64 and form it to InputDocument yourself. getting the media_id and access_hash alone is enough
Читать полностью…It is pointless since you have to run it against every exported link and iterate every potential user in them, and a user can join through multiple links, and a link can be deleted after someone joined with it
Читать полностью…Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon
, since most problems have already been fixed in newer versions.
Hi and welcome to the group. Before asking any questions, please read the rules from the group's description, and don't forget to read the docs. Make sure you are using the latest version with pip3 install -U telethon
, since most problems have already been fixed in newer versions.
is there any way that I can get to know if the user is using telegram based on phone number?
Читать полностью…update_response = Client(
channels.UpdateUsernameRequest(
InputPeerChannel(
channel_id=channel_id,
access_hash=channel_access_hash
),
username
)
)
Sending a sticker from local file will make it not belong to any pack, if that's what you want, no point in extras, just send it as any file
Читать полностью…TypeError: Cannot use <telethon.tl.types.InputStickeredMediaDocument object at 0x00000215F006D310> as file
Читать полностью…Is it possible to list all the channels you are admin it to resolve this?
telethon.errors.rpcerrorlist.ChannelsAdminPublicTooMuchError: You're admin of too many public channels, make some channels private to change the username of this channel