-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
- Loading branch information
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sending | ||
sendPollMessage: aPoll | ||
|
||
self core send: (TCCRequest newSendPollMessage: aPoll to: self id). | ||
self selectedReplyToMessageId: self class defaultSelectedReplyToMessageId. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
sending | ||
sendPollMessage: aPollType asking: aString with: anOrderedCollection isAnonymous: aBoolean | ||
|
||
self core send: (TCCRequest newSendPollMessage: aPollType to: (self id) asking: aString with: anOrderedCollection isAnonymous: aBoolean). | ||
self selectedReplyToMessageId: self class defaultSelectedReplyToMessageId. |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "6/23/2024 14:02:55", | ||
"imageFormFrom:" : "6/23/2024 14:02:55", | ||
"newWith:" : "6/23/2024 14:02:55" }, | ||
}, | ||
"instance" : { | ||
"core" : "6/23/2024 14:02:55", | ||
"core:" : "6/23/2024 14:02:55", | ||
"getFormFor:" : "6/23/2024 14:02:55", | ||
"getFormPromiseFor:" : "6/23/2024 14:02:55", | ||
"requestImageFor:with:" : "6/22/2024 13:42:57" } } | ||
} } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
instance creation | ||
newSendPollMessage: aPoll to: aChatId | ||
|
||
^ TCCRequest | ||
newWithType: 'sendMessage' | ||
from: { | ||
'chat_id' -> aChatId. | ||
'input_message_content' -> (Dictionary newFrom: { | ||
'@type' -> 'inputMessagePoll'. | ||
'question' -> (Dictionary newFrom: { | ||
'@type' -> 'formattedText'. | ||
'text' -> 'hallo' | ||
}). | ||
'options' -> (OrderedCollection newFrom: {(Dictionary newFrom: { | ||
'@type' -> 'formattedText'. | ||
'text' -> 'Option 1' | ||
}). | ||
(Dictionary newFrom: { | ||
'@type' -> 'formattedText'. | ||
'text' -> 'Option 2' | ||
}). | ||
(Dictionary newFrom: { | ||
'@type' -> 'formattedText'. | ||
'text' -> 'Option 3' | ||
})}). | ||
'is_anonymous' -> 'false'. | ||
'type' -> (Dictionary newFrom: { | ||
'@type' -> 'pollTypeRegular'. | ||
'allow_multiple_answers' -> 'false' | ||
}) | ||
}) | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
instance creation | ||
newSendPollMessage: aPollType to: aChatId asking: aString with: anOptionOrderedCollection isAnonymous: aBoolean | ||
|
||
^ (TCCRequest | ||
newWithType: 'sendMessage' | ||
from: { | ||
'chat_id' -> aChatId. | ||
'input_message_content' -> (Dictionary newFrom: { | ||
'@type' -> 'inputMessagePoll'. | ||
'question' -> aString. | ||
'options' -> anOptionOrderedCollection. | ||
'is_anonymous' -> aBoolean. | ||
'type' ->(self selectJsonFor: aPollType). | ||
}). | ||
}) |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
selectJsonFor: aPollType | ||
|
||
^ aPollType caseOf: { | ||
['regular'] -> [(Dictionary newFrom: {'@type' -> 'pollTypeRegular'. | ||
'allow_multiple_answers' -> false. })]. | ||
['multiple'] -> [(Dictionary newFrom: {'@type' -> 'pollTypeRegular'. | ||
'allow_multiple_answers' -> true. })]. | ||
['quiz'] -> [(Dictionary newFrom: {'@type' -> 'pollTypeQuiz'. 'correct_option_id' -> 0. })] | ||
} |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,9 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "6/23/2024 14:02:55", | ||
"imageFormFrom:" : "JK 6/21/2024 13:46", | ||
"newWith:" : "JK 6/20/2024 22:18", | ||
"stickerFormFrom:" : "6/23/2024 14:02:55" }, | ||
"newWith:" : "JK 6/20/2024 22:18" }, | ||
"instance" : { | ||
"core" : "6/23/2024 14:02:55", | ||
"core:" : "6/23/2024 14:02:55", | ||
"downloadStickerSet:" : "JK 6/19/2024 11:33", | ||
"getFormFor:" : "6/23/2024 14:02:55", | ||
"getFormPromiseFor:" : "6/23/2024 14:02:55", | ||
"getInstalledStickers" : "6/23/2024 17:46:17", | ||
"loadStickerIds" : "JK 6/20/2024 23:39", | ||
"requestStickerFor:with:" : "JK 5/16/2024 21:40", | ||
"stickerIds" : "6/23/2024 17:46:17", | ||
"stickerIds:" : "6/23/2024 17:46:17", | ||
"stickerSets" : "JK 6/19/2024 11:30", | ||
"stickerSets:" : "JK 6/19/2024 11:30", | ||
"storeStickerSet:" : "JK 6/23/2024 16:33" } } | ||
"storeStickerSet:" : "JK 7/4/2024 10:50" } } |
This file was deleted.
This file was deleted.
This file was deleted.
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,6 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "6/23/2024 14:02:55", | ||
"imageFormFrom:" : "6/23/2024 14:02:55", | ||
"newWith:" : "ED 6/26/2024 14:50" }, | ||
"instance" : { | ||
"getFormFor:" : "6/23/2024 14:02:55", | ||
"getFormPromiseFor:" : "6/23/2024 14:02:55", | ||
"getVideoFor:" : "JK 6/12/2024 19:48", | ||
"getVideoPromiseFor:" : "JK 6/12/2024 19:56" } } |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
as yet unclassified | ||
newFor: aChatWindow withBounds: aRectangle | ||
|
||
^ (super newBounds: aRectangle) | ||
chatWindow: aChatWindow; | ||
addButtonMenu; | ||
yourself |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
as yet unclassified | ||
newFor: aChat withBounds: aRectangle from: aChatWindow | ||
|
||
^ (super newBounds: aRectangle) | ||
chat: aChat; | ||
chatWindow: aChatWindow; | ||
addButtonMenu; | ||
yourself |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
as yet unclassified | ||
addButtonMenu | ||
|
||
self createButtonMenu; | ||
addStickerButton; | ||
addFileButton. | ||
(self chat isGroup) ifTrue: [self addPollButton]. | ||
self addMorphFront: self buttonMenu. | ||
self buttonMenu center: self center. |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
as yet unclassified | ||
addFileButton | ||
|
||
self fileButton: (TCUButton new | ||
extent: 100 @ 30; | ||
text: 'Select File'; | ||
on: #mouseUp send: #buttonFileSelectPressed to: self chatWindow; | ||
name: 'selectFile'; | ||
yourself). | ||
self buttonMenu addMorph: self fileButton. |