update bot api formatting
This commit is contained in:
1 parent
35e03222a4
commit
2abab628a0
3 files changed
+3
-3
No files matched your search
@@ -198,7 +198,7 @@ export class TabManager {
|
|||||||
const tab = this.tabs.get(tabId);
|
const tab = this.tabs.get(tabId);
|
||||||
if (!tab || tab.peerId == null) return;
|
if (!tab || tab.peerId == null) return;
|
||||||
console.log(`[MAIN] Headless call link for bot tab ${tabId}:`, link);
|
console.log(`[MAIN] Headless call link for bot tab ${tabId}:`, link);
|
||||||
this._botManager.sendMessage(tab.peerId, `Call created!\n${link}`);
|
this._botManager.sendMessage(tab.peerId, link);
|
||||||
}
|
}
|
||||||
|
|
||||||
startRelay(tabId: string, tab: TabState): void {
|
startRelay(tabId: string, tab: TabState): void {
|
||||||
|
|||||||
@@ -132,6 +132,6 @@ function handleBotCallLink(tabManager: TabManager, msg: string, platform: Platfo
|
|||||||
}
|
}
|
||||||
console.log(`[MAIN] Sending ${platform} link to peer ${tab.peerId} (tab ${tagged.tabId}):`, tagged.link);
|
console.log(`[MAIN] Sending ${platform} link to peer ${tab.peerId} (tab ${tagged.tabId}):`, tagged.link);
|
||||||
if (tabManager.botManager) {
|
if (tabManager.botManager) {
|
||||||
tabManager.botManager.sendMessage(tab.peerId, `Call created!\n${tagged.link}`);
|
tabManager.botManager.sendMessage(tab.peerId, tagged.link);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -239,7 +239,7 @@ func (b *bot) handleSpawn(peerID int64, platform string) {
|
|||||||
b.sendMessage(peerID, fmt.Sprintf("%s failed: %v", platform, err), mainMenuKeyboard())
|
b.sendMessage(peerID, fmt.Sprintf("%s failed: %v", platform, err), mainMenuKeyboard())
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
b.sendMessage(peerID, formatSession(sess), mainMenuKeyboard())
|
b.sendMessage(peerID, sess.link, mainMenuKeyboard())
|
||||||
}
|
}
|
||||||
|
|
||||||
func (b *bot) spawn(platform string) (*session, error) {
|
func (b *bot) spawn(platform string) (*session, error) {
|
||||||
|
|||||||
Reference in new issue
Block a user