Похожие чаты

"Different naming convention than the usual" - where's the usual?

telegram's api calls it silent

4 ответов

5 просмотров

sorry my bad. i was migrating from API rather than MTproto, thats why i assume disable_notification as the default convention as you seen here (https://core.telegram.org/bots/api#available-methods) instead i should be looking at this page instead (https://core.telegram.org/method/messages.sendMessage)

lonami- Автор вопроса
abdul
screenshot sorry my bad. i was migrating from API rather than...

i generally don't read the botapi docs. i don't personally like their custom layer of abstraction with telethon i aim to stay closer to how telegram actually works (which should hopefully be less confusing when you hop between mtproto libraries)

oh wait i found some inconsistency here https://core.telegram.org/method/messages.sendMessage in here telegram use message keyword as to put messages, so there is no "text" keyword here the text keyword that telethon used is referenced on bot api instead of the original method https://core.telegram.org/bots/api#available-methods is there a reason?

lonami- Автор вопроса
abdul
oh wait i found some inconsistency here https://co...

message.message is a thing in telethon .text is a custom property which returns the formatted text .raw_text is an alias for .message to avoid the awkwardness (and have it work with event directly)

Похожие вопросы

Обсуждают сегодня

30 BCH videos in Hausa Language successfully delivered. In December 2023, I created a Flipstarter to produce Bitcoin Cash videos in the Hausa language for greater outreach an...
Munnir
5
читать файл максимально быстро? странный вопрос))
zamtmn
53
тоесть, указав return eax, сгенерируется никому ненужная инструкция mov eax,eax ?
Aiwan \ (•◡•) / _bot
24
Посоветуйте пожалуйста аудио плеер для библиотеки mp3- FLAC на компьютере. На Винде пользовался Aimp, в том числе для конвертации. Много нужных команд было прямо в контекст...
Виктор Кузнецов
31
Hi guys , do we have update on voting?
HB
15
How Much Btc Falling Down ?
Suriya
22
Why build it new? Why not try and get projects like fjord foundry etc. to launch? There is more power in getting real adoption and other teams on than to start everything a ne...
Qrayon Shinchan
11
ᴅᴏ ʏᴏᴜ ᴋɴᴏᴡ ᴛʜᴀᴛ ʏᴏᴜ ᴄᴀɴ ꜱᴇᴄᴜʀᴇ ᴀ ᴍᴀꜱꜱɪᴠᴇ ꜰɪɴᴀɴᴄɪᴀʟ ꜰᴜᴛᴜʀᴇ ʙʏ ᴊᴏɪɴɪɴɢ ᴛʜᴇ ᴏɴ ɢᴏɪɴɢ Qᴜᴀɴᴛᴜᴍ_ᴀɪ_ʀᴏʙᴏᴛ ᴛʀᴀᴅɪɴɢ ʙʏ ᴇʟᴏɴ ᴍᴜꜱᴋ? 👇👇👇JOIN NOW https://t.me/+3Ii7e3UQKRpiZjZk https://t...
Niklas Orlowski
3
It is definitely an interesting conversation. Breaking up the users into 2 personas: 1. Someone who wants to use the products (I want “x” pegged stablecoin that provides safe...
Bueno Pues
10
Hi guys ! Anvil is out ! Time for me to stake on capacity. Does someone has a clear tutorial ? I’m thinking about buying a ledger. Is that really possible to stake directl...
Mister Grega
15
Карта сайта