Skip to content

Commit b4e94fa

Browse files
committed
Merge develop into develop2
2 parents 009cab7 + e454f3d commit b4e94fa

File tree

74 files changed

+442
-53
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+442
-53
lines changed

.squot-materialize

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -182,19 +182,19 @@
182182
],
183183
#encoding : Class [ #JPEGReadWriter2 ]
184184
},
185+
SquotImageMapper {
186+
#path : FSAbsolutePath [
187+
'assets',
188+
'play_circle_outline_icon.png'
189+
],
190+
#encoding : @6
191+
},
185192
SquotPlaintextMapper {
186193
#path : FSAbsolutePath [
187194
'.github',
188195
'workflows',
189196
'ci-linter.yml'
190197
],
191198
#encoding : 'TXT'
192-
},
193-
SquotImageMapper {
194-
#path : FSAbsolutePath [
195-
'assets',
196-
'play_circle_outline_icon.png'
197-
],
198-
#encoding : @6
199199
}
200200
]
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sending
2+
sendPollMessage: aPoll
3+
4+
self core send: (TCCRequest newSendPollMessage: aPoll to: self id).
5+
self selectedReplyToMessageId: self class defaultSelectedReplyToMessageId.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
sending
2+
sendPollMessage: aPollType asking: aString with: anOrderedCollection isAnonymous: aBoolean
3+
4+
self core send: (TCCRequest newSendPollMessage: aPollType to: (self id) asking: aString with: anOrderedCollection isAnonymous: aBoolean).
5+
self selectedReplyToMessageId: self class defaultSelectedReplyToMessageId.

packages/TelegramClient-Core.package/TCCChat.class/methodProperties.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,8 @@
7676
"sendDocumentMessage:" : "ED 6/19/2024 13:53",
7777
"sendMessage:" : "JK 5/28/2024 09:53",
7878
"sendPhotoMessage:" : "ED 6/19/2024 12:11",
79+
"sendPollMessage:" : " 7/5/2024 09:48:19",
80+
"sendPollMessage:asking:with:isAnonymous:" : "jkon 6/27/2024 20:35",
7981
"sendStickerMessage:" : "JK 5/28/2024 10:26",
8082
"sendVideoMessage:" : "ED 6/19/2024 12:23",
8183
"stillRequestedMessages" : "ek 8/4/2022 11:38",
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
instance creation
2+
newSendPollMessage: aPoll to: aChatId
3+
4+
^ TCCRequest
5+
newWithType: 'sendMessage'
6+
from: {
7+
'chat_id' -> aChatId.
8+
'input_message_content' -> (Dictionary newFrom: {
9+
'@type' -> 'inputMessagePoll'.
10+
'question' -> (Dictionary newFrom: {
11+
'@type' -> 'formattedText'.
12+
'text' -> 'hallo'
13+
}).
14+
'options' -> (OrderedCollection newFrom: {(Dictionary newFrom: {
15+
'@type' -> 'formattedText'.
16+
'text' -> 'Option 1'
17+
}).
18+
(Dictionary newFrom: {
19+
'@type' -> 'formattedText'.
20+
'text' -> 'Option 2'
21+
}).
22+
(Dictionary newFrom: {
23+
'@type' -> 'formattedText'.
24+
'text' -> 'Option 3'
25+
})}).
26+
'is_anonymous' -> 'false'.
27+
'type' -> (Dictionary newFrom: {
28+
'@type' -> 'pollTypeRegular'.
29+
'allow_multiple_answers' -> 'false'
30+
})
31+
})
32+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
instance creation
2+
newSendPollMessage: aPollType to: aChatId asking: aString with: anOptionOrderedCollection isAnonymous: aBoolean
3+
4+
^ (TCCRequest
5+
newWithType: 'sendMessage'
6+
from: {
7+
'chat_id' -> aChatId.
8+
'input_message_content' -> (Dictionary newFrom: {
9+
'@type' -> 'inputMessagePoll'.
10+
'question' -> aString.
11+
'options' -> anOptionOrderedCollection.
12+
'is_anonymous' -> aBoolean.
13+
'type' ->(self selectJsonFor: aPollType).
14+
}).
15+
})
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
as yet unclassified
2+
selectJsonFor: aPollType
3+
4+
^ aPollType caseOf: {
5+
['regular'] -> [(Dictionary newFrom: {'@type' -> 'pollTypeRegular'.
6+
'allow_multiple_answers' -> false. })].
7+
['multiple'] -> [(Dictionary newFrom: {'@type' -> 'pollTypeRegular'.
8+
'allow_multiple_answers' -> true. })].
9+
['quiz'] -> [(Dictionary newFrom: {'@type' -> 'pollTypeQuiz'. 'correct_option_id' -> 0. })]
10+
}

packages/TelegramClient-Core.package/TCCRequest.class/methodProperties.json

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,11 +21,14 @@
2121
"newSendMessage:to:" : "6/7/2024 09:02:10",
2222
"newSendMessage:to:asReplyTo:" : "JS 5/20/2022 10:02",
2323
"newSendPhoneNumber:" : "RS 6/23/2021 16:34",
24-
"newSendPhotoMessage:to:" : "ED 6/19/2024 12:10",
24+
"newSendPhotoMessage:to:" : "jkon 6/27/2024 09:20",
25+
"newSendPollMessage:to:" : " 7/5/2024 09:48:19",
26+
"newSendPollMessage:to:asking:with:isAnonymous:" : "jkon 6/28/2024 09:16",
2527
"newSendStickerMessage:to:" : "JK 6/21/2024 14:08",
2628
"newSendVideoMessage:to:" : "ED 6/19/2024 12:22",
2729
"newSetPollAnswer:message:options:" : "TU 6/6/2024 01:15",
2830
"newUser:" : "JB 8/1/2021 11:55",
29-
"newWithType:from:" : "rs 6/6/2020 16:21" },
31+
"newWithType:from:" : "rs 6/6/2020 16:21",
32+
"selectJsonFor:" : "jkon 6/27/2024 14:35" },
3033
"instance" : {
3134
"asString" : "js 8/1/2020 12:16" } }

packages/TelegramClient-UI.package/TCUChatButtonPage.class/README.md

Whitespace-only changes.
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
as yet unclassified
2+
newFor: aChatWindow withBounds: aRectangle
3+
4+
^ (super newBounds: aRectangle)
5+
chatWindow: aChatWindow;
6+
addButtonMenu;
7+
yourself

0 commit comments

Comments
 (0)