MTProto • Layer – Telegram
rip
😢2
smsjobs.eligibleToJoin#dc8b44cf terms_of_use: string monthly_sent_sms: int;

smsjobs.status#2aee9191 flags: int allow_international: Bool recent_sent: int recent_since: int recent_remains: int total_sent: int total_since: int last_gift_slug: flags.2?string terms_url: string;

updateSmsJob#f16269d4 job_id: string = Update;


smsJob#e6a1eeb8 job_id: string phone_number: string text: string;

smsjobs.isEligibleToJoin#edc39d0 = smsjobs.eligibleToJoin;
smsjobs.join#a74ece2d = Bool;
smsjobs.leave#9898ad73 = Bool;
smsjobs.getStatus#10a698e8 = smsjobs.status;
smsjobs.getSmsJob#778d902f job_id: string = smsJob;

smsjobs.finishJob#4f1ebf24 flags: int job_id: string error: flags.1?string = Bool;

smsjobs.updateSettings#93fa0bf flags: int allow_international: Bool = Bool;
🤯7🔥2👍1
accountConnectedBots#b1b41517 connected_bots:Vector<ConnectedBot> users:Vector<User> = AccountConnectedBots;

connectedBot#2e8defb1 flags:# bot_id:long can_reply:flags.0?true recipients:BusinessRecipients = ConnectedBot;

businessRecipients#8d8d82d7 flags:# existing_chats:flags.0?true new_chats:flags.1?true contacts:flags.2?true non_contacts:flags.3?true exclude_selected:flags.5?true users:flags.4?Vector<long> = BusinessRecipients;

accountUpdateBusinessAwayMessage#9a97e1f3 flags:# message:flags.0?InputBusinessAwayMessage = AccountUpdateBusinessAwayMessage;

inputBusinessAwayMessage#19f7e578 flags:# text:string = InputBusinessAwayMessage;

businessAwayMessageScheduleEmpty#e6c49073 = BusinessAwayMessageSchedule;
businessAwayMessageScheduleAlways#76e28c1f = BusinessAwayMessageSchedule;
businessAwayMessageScheduleOutsideWorkHours#a3b54985 = BusinessAwayMessageSchedule;
businessAwayMessageScheduleCustom#79d93855 = BusinessAwayMessageSchedule;

businessAwayMessageSchedule#f1e69bf3 = BusinessAwayMessageSchedule;

businessWorkHours#8af52acd flags:# open_now:flags.0?true timezone_id:string weekly_open:Vector<BusinessWeeklyOpen> = BusinessWorkHours;

businessWeeklyOpen#a3b7aacb weekday:int start_time:int end_time:int = BusinessWeeklyOpen;
await app.invoke(
raw.functions.account.UpdateConnectedBot(
bot=await app.resolve_peer("UsernameBot"),
recipients=InputBusinessRecipients()
)
))

Telegram says: [400 PREMIUM_ACCOUNT_REQUIRED] - The method requires a premium user account (caused by "account.UpdateConnectedBot")


⭐️ From Premium Account
Please open Telegram to view this post
VIEW IN TELEGRAM
🤔4🤯2
quick_replies_limit 100.0
quick_reply_messages_limit 20.0
👍42
The tl layer beta is coming soon 👀
🍌4😎3
stickers.replaceSticker#7b30c3a0 new_sticker:flags.0?InputStickerSetItem sticker:InputDocument = StickerSet;

stickers.renameStickerSet#1245e55f stickerset:InputStickerSet noscript:string = StickerSet;

stickers.deleteStickerSet#da895b71 stickerset:InputStickerSet = Bool;

stickers.createStickerSet#9bd86e6a flags:int user_id:InputUser noscript:string short_name:string thumb:flags.4?InputDocument stickers:Vector<InputStickerSetItem> = StickerSet;

stickers_changeStickerPosition#f8b6ad1f sticker:InputDocument position:int = StickerSet;

stickers_addStickerToSet#e075e46c stickerset:InputStickerSet sticker:InputStickerSetItem = StickerSet;

stickerSet#b60a24a6 flags:int id:long access_hash:long noscript:string short_name:string thumbs:flags.2?Vector<PhotoSize> thumb_dc_id:flags.2?int thumb_version:flags.2?int thumb_document_id:flags.13?long count:int hash:int = StickerSet;

myStickers#3e6d83d8 count:int sets:Vector<StickerSetCovered> = MyStickers;

getMyStickers#3a63d4d4 offset_id:long limit:int = messages.MyStickers;
🥰4👏2😁1
MTProto • Layer
https://github.com/null-nick/TL-Schema/commit/c3e09f4310413ff49b695dfe78df64044153c905
Telegram says: [400 Bad Request] - [400 BUSINESS_CONNECTION_NOT_ALLOWED] (caused by "InvokeWithBusinessConnection")
👍2
account.toggleSponsoredMessages#46265c73 enabled:Bool = account.ToggleSponsoredMessages;

webPageAttributeStickerSet#1cb5c415 flags:# emojis:flags.0?true text_color:flags.1?true stickers:Vector<Document> = WebPageAttribute;

togglePinnedToTop#b297e9b peer:InputPeer id:Vector<int> = stories.TogglePinnedToTop;

stories.stories#63c3dd0a flags:# count:int stories:Vector<StoryItem> pinned_to_top:flags.0?Vector<int> chats:Vector<Chat> users:Vector<User> = stories.stories;

messages.sponsoredMessages#3611e279 flags:# posts_between:flags.0?int messages:Vector<sponsoredMessage> chats:Vector<Chat> users:Vector<User> = messages.SponsoredMessages;
👍42
interesting
😨3