-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
145 changed files
with
869 additions
and
119 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCAnimatedStickerMessage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
packages/TelegramClient-Core.package/TCCDocumentMessage.class/README.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
data-represantation of a single text message in a chat |
6 changes: 6 additions & 0 deletions
6
packages/TelegramClient-Core.package/TCCDocumentMessage.class/class/newFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
instance creation | ||
newFrom: aJsonObject | ||
|
||
^ self new | ||
filename: ((aJsonObject at: 'document') at: 'file_name'); | ||
yourself |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/asSnippet.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
asSnippet | ||
|
||
^ self filename |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/asText.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
asText | ||
|
||
^ self filename |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/filename..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
filename: aString | ||
|
||
filename := aString |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCDocumentMessage.class/instance/filename.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
filename | ||
|
||
^ filename |
8 changes: 8 additions & 0 deletions
8
packages/TelegramClient-Core.package/TCCDocumentMessage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
{ | ||
"class" : { | ||
"newFrom:" : "JK 6/23/2024 11:52" }, | ||
"instance" : { | ||
"asSnippet" : "AH 6/21/2024 13:54", | ||
"asText" : "AH 6/21/2024 13:54", | ||
"filename" : "AH 6/21/2024 13:54", | ||
"filename:" : "AH 6/21/2024 13:55" } } |
14 changes: 14 additions & 0 deletions
14
packages/TelegramClient-Core.package/TCCDocumentMessage.class/properties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
{ | ||
"category" : "TelegramClient-Core", | ||
"classinstvars" : [ | ||
], | ||
"classvars" : [ | ||
], | ||
"commentStamp" : "<historical>", | ||
"instvars" : [ | ||
"filename" ], | ||
"name" : "TCCDocumentMessage", | ||
"pools" : [ | ||
], | ||
"super" : "TCCMessage", | ||
"type" : "normal" } |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCFileStore.class/class/imageFormFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
utility | ||
imageFormFrom: aString | ||
|
||
^ Form fromFileNamed: aString |
7 changes: 7 additions & 0 deletions
7
packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormFor..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
utility | ||
getFormFor: anImageId | ||
|
||
| promise | | ||
promise := self getFormPromiseFor: anImageId. | ||
promise wait. | ||
^ promise value |
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-Core.package/TCCFileStore.class/instance/getFormPromiseFor..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
utility | ||
getFormPromiseFor: anImageId | ||
|
||
| promise | | ||
promise := self at: anImageId ifAbsent: [ | ||
self at: anImageId put: Promise new. | ||
self requestFileFor: anImageId with: (self at: anImageId). | ||
self at: anImageId | ||
]. | ||
^ promise >>= [:aPath | self class imageFormFrom: aPath] |
3 changes: 3 additions & 0 deletions
3
packages/TelegramClient-Core.package/TCCFileStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,11 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "JK 6/12/2024 19:32", | ||
"imageFormFrom:" : "JK 6/21/2024 13:53", | ||
"newWith:" : "pk 6/19/2021 18:09" }, | ||
"instance" : { | ||
"core" : "pk 6/19/2021 16:13", | ||
"core:" : "pk 6/19/2021 16:13", | ||
"getFormFor:" : "JK 6/21/2024 13:30", | ||
"getFormPromiseFor:" : "JK 6/21/2024 13:47", | ||
"requestFileFor:with:" : "JK 6/12/2024 19:23" } } |
16 changes: 8 additions & 8 deletions
16
packages/TelegramClient-Core.package/TCCImageStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "pk 6/19/2021 16:23", | ||
"imageFormFrom:" : "pk 8/5/2021 16:52", | ||
"newWith:" : "6/14/2024 09:21:38" }, | ||
"extractPathFrom:" : "6/23/2024 14:02:55", | ||
"imageFormFrom:" : "6/23/2024 14:02:55", | ||
"newWith:" : "6/23/2024 14:02:55" }, | ||
"instance" : { | ||
"core" : "6/14/2024 09:21:38", | ||
"core:" : "6/14/2024 09:21:38", | ||
"getFormFor:" : "JK 5/16/2024 22:13", | ||
"getFormPromiseFor:" : "rgw 6/6/2022 18:43", | ||
"requestImageFor:with:" : "JK 6/12/2024 19:46" } } | ||
"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" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCStickerMessage.class/instance/asSnippet.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
accessing | ||
asSnippet | ||
|
||
^ 'Sticker' | ||
^ 'Sticker: ', self stickerId |
4 changes: 2 additions & 2 deletions
4
packages/TelegramClient-Core.package/TCCStickerMessage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
packages/TelegramClient-Core.package/TCCStickerStore.class/class/imageFormFrom..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
utility | ||
imageFormFrom: aString | ||
|
||
| file byteArray | | ||
file := FileStream fileNamed: aString. | ||
file binary. | ||
byteArray := file next: file size. | ||
file close. | ||
^ (TCCLibWebP decode: byteArray). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
4 changes: 2 additions & 2 deletions
4
packages/TelegramClient-Core.package/TCCStickerStore.class/instance/downloadStickerSet..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
as yet unclassified | ||
downloadStickerSet: aStickerSet | ||
|
||
|
||
self storeStickerSet: aStickerSet. | ||
(aStickerSet at: 'stickers') do: [:sticker | | ||
self stickerIds add: ((sticker at: 'sticker') at: 'id'). | ||
self getFormPromiseFor: ((sticker at: 'sticker') at: 'id')]. |
9 changes: 9 additions & 0 deletions
9
packages/TelegramClient-Core.package/TCCStickerStore.class/instance/loadStickerIds.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
as yet unclassified | ||
loadStickerIds | ||
|
||
| sets | | ||
|
||
self core send: (TCCRequest getInstalledStickerSets) | ||
thenDo: [:stickerEvent | sets := stickerEvent at: 'sets'. | ||
sets do: [:setInfo | self core send: (TCCRequest getStickerSetFor: (setInfo at: 'id')) | ||
thenDo: [:set | (set at: 'is_animated') ifFalse: [self storeStickerSet: set.]]]]. |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
stickerSets: aDictionary | ||
|
||
stickerSets := aDictionary |
4 changes: 4 additions & 0 deletions
4
packages/TelegramClient-Core.package/TCCStickerStore.class/instance/stickerSets.st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
accessing | ||
stickerSets | ||
|
||
^ stickerSets |
10 changes: 10 additions & 0 deletions
10
packages/TelegramClient-Core.package/TCCStickerStore.class/instance/storeStickerSet..st
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
utility | ||
storeStickerSet: aStickerSet | ||
|
||
| stickers | | ||
|
||
self stickerSets at: (aStickerSet at: 'id') ifAbsent: [ | ||
stickers := OrderedCollection new. | ||
(aStickerSet at: 'stickers') do: [:sticker | | ||
stickers add: ((sticker at: 'sticker') at: 'id')]. | ||
self stickerSets at: (aStickerSet at: 'id') put: stickers] |
27 changes: 16 additions & 11 deletions
27
packages/TelegramClient-Core.package/TCCStickerStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,20 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "pk 6/19/2021 16:23", | ||
"newWith:" : "JK 6/5/2024 12:01", | ||
"stickerFormFrom:" : "JK 6/5/2024 11:15" }, | ||
"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" }, | ||
"instance" : { | ||
"core" : "pk 6/19/2021 16:13", | ||
"core:" : "pk 6/19/2021 16:13", | ||
"downloadStickerSet:" : "JK 6/5/2024 12:07", | ||
"getFormFor:" : "JK 6/5/2024 11:12", | ||
"getFormPromiseFor:" : "JK 5/16/2024 21:21", | ||
"getInstalledStickers" : "JK 6/5/2024 11:37", | ||
"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" : "JK 6/5/2024 11:41", | ||
"stickerIds:" : "JK 6/5/2024 11:41" } } | ||
"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" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/TelegramClient-Core.package/TCCVideoMessage.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
8 changes: 4 additions & 4 deletions
8
packages/TelegramClient-Core.package/TCCVideoStore.class/methodProperties.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
{ | ||
"class" : { | ||
"extractPathFrom:" : "pk 6/19/2021 16:23", | ||
"imageFormFrom:" : "pk 8/5/2021 16:52" }, | ||
"extractPathFrom:" : "6/23/2024 14:02:55", | ||
"imageFormFrom:" : "6/23/2024 14:02:55" }, | ||
"instance" : { | ||
"getFormFor:" : "JK 6/12/2024 19:28", | ||
"getFormPromiseFor:" : "JK 6/12/2024 19:30", | ||
"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" } } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.