There is no information about a group topics. I tried to find any information on the official site.
Functions client.iter_dialogs() and client.get_dialogs() don't consider topics. They return only lists of opened conversations.
When I tried to send message to group with a topic using function client.send_message(), I get errors when topic "General" was closed.
When it was open, I didn't get any errors, and a message was sent to the "General" topic of the group. I understood that function send_message() can send message to group with topics. So, I want have posability to choose a topic and write there. And get list of topics where user already wrote any messages, from opened group dialogs.
I sent a few messages by Telegram and got its log. Found the part where it sends the message. I didn't understand where it sends topic ID.
TL_messages_sendMessage didn't get any parameter. And "send message" either.
Log below:
Dialog ID: 1***098800 Topic ID: 258
01_07_2023_16_28_09 D/tmessages: notify item inserted 0 01_07_2023_16_28_09 D/tmessages: update messageRead currentMaxId = 334 dialogId = -1***098800
01_07_2023_16_28_09 D/tmessages: send message user_id = 0 chat_id = 0 channel_id = 1***098800 access_hash = 6691323840089318717 notify = true silent = false 01_07_2023_16_28_09 D/tmessages: send request org.telegram.tgnet.TLRPC$TL_messages_sendMessage@80b5824 with token = 616 01_07_2023_16_28_09 D/tmessages: chatItemAnimator enable notifications 01_07_2023_16_28_09 D/tmessages: chatItemAnimator disable notifications
01_07_2023_16_28_09 D/tmessages: update topic -1098800 258 0 0 01_07_2023_16_28_09 D/tmessages: java received org.telegram.tgnet.TLRPC$TL_updates@875347f error = null 01_07_2023_16_28_09 D/tmessages: processNewChannelDifferenceParams pts = 348 pts_count = 1 channeldId = 1098800 01_07_2023_16_28_09 D/tmessages: APPLY CHANNEL PTS 01_07_2023_16_28_09 D/tmessages: process update TLRPC$TL_updateMessageID 01_07_2023_16_28_09 D/tmessages: send request org.telegram.tgnet.TLRPC$TL_messages_getMessagesReactions@9203c4c with token = 617 01_07_2023_16_28_09 D/tmessages: update messageRead currentMaxId = 334 dialogId = -1***098800
01_07_2023_16_28_09 D/tmessages: update topic -1***098800 258 0 0 01_07_2023_16_28_09 D/tmessages: java received org.telegram.tgnet.TLRPC$TL_updates@3e10495 error = null 01_07_2023_16_28_09 D/tmessages: chatItemAnimator enable notifications 01_07_2023_16_28_09 D/tmessages: chatItemAnimator enable notifications 01_07_2023_16_28_09 D/tmessages: chatItemAnimator disable notifications
01_07_2023_16_28_09 D/tmessages: send request org.telegram.tgnet.TLRPC$TL_messages_setTyping@73387d6 with token = 618 01_07_2023_16_28_09 D/tmessages: java received org.telegram.tgnet.TLRPC$TL_boolTrue@44ff5b0 error = null 01_07_2023_16_28_09 D/tmessages: chatItemAnimator enable notifications
01_07_2023_16_28_10 D/tmessages: received new messages 1 in dialog -1***098800
01_07_2023_16_28_10 D/tmessages: notify item inserted 0 01_07_2023_16_28_10 D/tmessages: update messageRead currentMaxId = 334 dialogId = -1***098800
01_07_2023_16_28_10 D/tmessages: send message user_id = 0 chat_id = 0 channel_id = 1098800 access_hash = 6691323840089318717 notify = true silent = false 01_07_2023_16_28_10 D/tmessages: send request org.telegram.tgnet.TLRPC$TL_messages_sendMessage@e553f6b with token = 619 01_07_2023_16_28_10 D/tmessages: chatItemAnimator enable notifications 01_07_2023_16_28_10 D/tmessages: chatItemAnimator disable notifications 01_07_2023_16_28_10 D/tmessages: update topic -1098800 258 0 0